Sha256: 59bbe50d332867bc696a56bfc719dac53470dc11b6fb2ccd7437aab85b02b589
Contents?: true
Size: 435 Bytes
Versions: 24
Compression:
Stored size: 435 Bytes
Contents
module ActiveRecord module Associations class Preloader class CollectionAssociation < Association #:nodoc: private def preload(preloader) associated_records_by_owner(preloader).each do |owner, records| association = owner.association(reflection.name) association.loaded! association.target.concat(records) end end end end end end
Version data entries
24 entries across 24 versions & 3 rubygems