method
foreign_key_present?
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::Associations::ThroughAssociation
foreign_key_present?()private
No documentation available.
# File activerecord/lib/active_record/associations/through_association.rb, line 85
def foreign_key_present?
through_reflection.belongs_to? && !owner[through_reflection.foreign_key].nil?
end