Sha256: 29365adee3bae7abc6b57bbbd0d081311f715de3bdd8c529ebdb3c254aeaf8b6

Contents?: true

Size: 336 Bytes

Versions: 353

Compression:

Stored size: 336 Bytes

Contents

module ActiveRecord
  module Associations
    class Preloader
      class BelongsTo < SingularAssociation #:nodoc:

        def association_key_name
          reflection.options[:primary_key] || klass && klass.primary_key
        end

        def owner_key_name
          reflection.foreign_key
        end

      end
    end
  end
end

Version data entries

353 entries across 317 versions & 24 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activerecord-5.0.2/lib/active_record/associations/preloader/belongs_to.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activerecord-4.2.8/lib/active_record/associations/preloader/belongs_to.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activerecord-3.2.22.5/lib/active_record/associations/preloader/belongs_to.rb
activerecord-5.0.2 lib/active_record/associations/preloader/belongs_to.rb
activerecord-5.0.2.rc1 lib/active_record/associations/preloader/belongs_to.rb
activerecord-4.2.8 lib/active_record/associations/preloader/belongs_to.rb
activerecord-4.2.8.rc1 lib/active_record/associations/preloader/belongs_to.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/preloader/belongs_to.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/preloader/belongs_to.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/preloader/belongs_to.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/preloader/belongs_to.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/preloader/belongs_to.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/preloader/belongs_to.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/preloader/belongs_to.rb
abaci-0.3.0 vendor/bundle/gems/activerecord-5.0.0/lib/active_record/associations/preloader/belongs_to.rb
activerecord-5.0.1 lib/active_record/associations/preloader/belongs_to.rb
activerecord-5.0.1.rc2 lib/active_record/associations/preloader/belongs_to.rb
activerecord-5.0.1.rc1 lib/active_record/associations/preloader/belongs_to.rb
activerecord-3.2.22.5 lib/active_record/associations/preloader/belongs_to.rb
activerecord-3.2.22.4 lib/active_record/associations/preloader/belongs_to.rb