method
foreign_key_for?
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Associations::Association
foreign_key_for?(record)private
Returns true if record contains the foreign_key
foreign_key_for?(record)Returns true if record contains the foreign_key