method
foreign_key_present?
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Associations::BelongsToAssociation
foreign_key_present?()private
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 105
def foreign_key_present?
owner._read_attribute(reflection.foreign_key)
end