method
preload_hash
v3.1.0 -
Show latest stable
- Class:
ActiveRecord::Associations::Preloader
preload_hash(association)private
No documentation available.
# File activerecord/lib/active_record/associations/preloader.rb, line 111
def preload_hash(association)
association.each do |parent, child|
Preloader.new(records, parent, options).run
Preloader.new(records.map { |record| record.send(parent) }.flatten, child).run
end
end