Sha256: 7f3de2099deb85a03289603df695232631b2a72b9dae2524d9116548688d90e8
Contents?: true
Size: 440 Bytes
Versions: 95
Compression:
Stored size: 440 Bytes
Contents
module ActiveRecord module Associations class Preloader class HasManyThrough < CollectionAssociation #:nodoc: include ThroughAssociation def associated_records_by_owner(preloader) records_by_owner = super if reflection_scope.distinct_value records_by_owner.each_value { |records| records.uniq! } end records_by_owner end end end end end
Version data entries
95 entries across 91 versions & 8 rubygems