Sha256: d621b27aaa2dedf897f66ebba549d6a4a508fccc9a568693bd957b966433bb30

Contents?: true

Size: 308 Bytes

Versions: 20

Compression:

Stored size: 308 Bytes

Contents

module ActiveRecord
  module Associations
    class Preloader
      class HasMany < CollectionAssociation #:nodoc:
        def association_key_name
          reflection.foreign_key
        end

        def owner_key_name
          reflection.active_record_primary_key
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
activerecord-5.1.7 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.7.rc1 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.6.2 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.6.1 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.6 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.5 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.5.rc1 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.4 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.4.rc1 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.3 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.3.rc3 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.3.rc2 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.3.rc1 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.2 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.2.rc1 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.1 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.0 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.0.rc2 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.0.rc1 lib/active_record/associations/preloader/has_many.rb
activerecord-5.1.0.beta1 lib/active_record/associations/preloader/has_many.rb