method

foreign_key_present

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).