Sha256: e4c78e1ca6f2b1115266dcf856c1aa7b118f392d62c9eec38acf77c44ea2f118
Contents?: true
Size: 454 Bytes
Versions: 24
Compression:
Stored size: 454 Bytes
Contents
module ActiveRecord module Associations class Preloader class SingularAssociation < Association #:nodoc: private def preload(preloader) associated_records_by_owner(preloader).each do |owner, associated_records| record = associated_records.first association = owner.association(reflection.name) association.target = record end end end end end end
Version data entries
24 entries across 24 versions & 3 rubygems