Sha256: 74c84b30ef042ccf7adb10a495710432bbb7e6978cffeb67a9c26472a2cb6d6d

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

module ActiveRecord
  module Associations
    class Preloader
      class HasManyThrough < CollectionAssociation #:nodoc:
        include ThroughAssociation

        def associated_records_by_owner
          super.each do |owner, records|
            records.uniq! if reflection_scope.uniq_value
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-4.0.0.beta1 lib/active_record/associations/preloader/has_many_through.rb