method
foreign_key_present
rails latest stable - Class:
ActiveRecord::Associations::AssociationProxy
foreign_key_present()private
Can be overwritten by associations that might have the foreign key available for an association without having the object itself (and still being a new record). Currently, only belongs_to presents this scenario (both vanilla and polymorphic).