method
find_with_associations
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::FinderMethods
find_with_associations()protected
No documentation available.
# File activerecord/lib/active_record/relation/finder_methods.rb, line 186
def find_with_associations
including = (@eager_load_values + @includes_values).uniq
join_dependency = ActiveRecord::Associations::ClassMethods::JoinDependency.new(@klass, including, nil)
rows = construct_relation_for_association_find(join_dependency).to_a
join_dependency.instantiate(rows)
rescue ThrowResult
[]
end