instance method
find_with_associations
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.2.9Signature
find_with_associations()
No documentation comment.
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 204
def find_with_associations
join_dependency = construct_join_dependency_for_association_find
relation = construct_relation_for_association_find(join_dependency)
rows = connection.select_all(relation, 'SQL', relation.bind_values.dup)
join_dependency.instantiate(rows)
rescue ThrowResult
[]
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 204
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods