Sha256: a3444383a5606055da18bee155bf63d2d087a5ccaca7eb0507c233b9659b228e

Contents?: true

Size: 337 Bytes

Versions: 193

Compression:

Stored size: 337 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 options[:uniq]
          end
        end
      end
    end
  end
end

Version data entries

193 entries across 162 versions & 15 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activerecord-3.2.22.5/lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.22.5 lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.22.4 lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.22.3 lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.22.2 lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.22.1 lib/active_record/associations/preloader/has_many_through.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.22 lib/active_record/associations/preloader/has_many_through.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.12/lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.21 lib/active_record/associations/preloader/has_many_through.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.18/lib/active_record/associations/preloader/has_many_through.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activerecord-3.2.18/lib/active_record/associations/preloader/has_many_through.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.18/lib/active_record/associations/preloader/has_many_through.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activerecord-3.2.18/lib/active_record/associations/preloader/has_many_through.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/associations/preloader/has_many_through.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.20 lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.19 lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.18 lib/active_record/associations/preloader/has_many_through.rb
activerecord-3.2.17 lib/active_record/associations/preloader/has_many_through.rb