method
foreign_key_present?
v4.2.1 -
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 90
def foreign_key_present?
owner._read_attribute(reflection.foreign_key)
end