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