method
records_by_owner
v6.1.7.7 -
Show latest stable
- Class:
ActiveRecord::Associations::Preloader::AlreadyLoaded
records_by_owner()public
No documentation available.
# File activerecord/lib/active_record/associations/preloader.rb, line 179
def records_by_owner
@records_by_owner ||= owners.index_with do |owner|
Array(owner.association(reflection.name).target)
end
end