Loads all the given data into records for the
association.
# File activerecord/lib/active_record/associations/preloader.rb, line 105
def preloaders_on(association, records, scope, polymorphic_parent = false)
case association
when Hash
preloaders_for_hash(association, records, scope, polymorphic_parent)
when Symbol, String
preloaders_for_one(association, records, scope, polymorphic_parent)
else
raise ArgumentError, "#{association.inspect} was not recognized for preload"
end
end