method
get_chain
rails latest stable - Class:
ActiveRecord::Associations::AssociationScope
get_chain(reflection, association, tracker)private
No documentation available.
# File activerecord/lib/active_record/associations/association_scope.rb, line 112
def get_chain(reflection, association, tracker)
name = reflection.name
chain = [Reflection::RuntimeReflection.new(reflection, association)]
reflection.chain.drop(1).each do |refl|
aliased_table = tracker.aliased_table_for(refl.klass.arel_table) do
refl.alias_candidate(name)
end
chain << ReflectionProxy.new(refl, aliased_table)
end
chain
end