instance method
construct_relation_for_association_calculations
Ruby on Rails 4.2.9
Since v3.0.20 Last seen in v4.2.9 PrivateSignature
construct_relation_for_association_calculations()
No documentation comment.
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 367
def construct_relation_for_association_calculations
from = arel.froms.first
if Arel::Table === from
apply_join_dependency(self, construct_join_dependency(joins_values))
else
# FIXME: as far as I can tell, `from` will always be an Arel::Table.
# There are no tests that test this branch, but presumably it's
# possible for `from` to be a list?
apply_join_dependency(self, construct_join_dependency(from))
end
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 367
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods