blob: ae9695f26a38c03cd00ab500256b5523dabe5abf (
plain) (
tree)
|
|
# frozen_string_literal: true
module ActiveRecord
module Associations
class Preloader
class BelongsTo < SingularAssociation #:nodoc:
def association_key_name
options[:primary_key] || klass && klass.primary_key
end
def owner_key_name
reflection.foreign_key
end
end
end
end
end
|