method
foreign_key_present?
rails latest stable - Class:
ActiveRecord::Associations::BelongsToAssociation
foreign_key_present?()private
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 141
def foreign_key_present?
Array(reflection.foreign_key).all? { |fk| owner._read_attribute(fk) }
end