Sha256: cc152594e43b74698d094789b08cfbd6fa2f6ca0a1bea5a01e9a6bd3332de9c8

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module Associations
    class Preloader
      class HasOne < SingularAssociation #: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

1 entries across 1 versions & 1 rubygems

Version Path
ruby-on-quails-0.1.0 activerecord/lib/active_record/associations/preloader/has_one.rb