Flowdock
method

set_new_record

Importance_1
v3.2.13 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::HasOneAssociation
set_new_record(record) private

The reason that the save param for replace is false, if for create (not just build), is because the setting of the foreign keys is actually handled by the scoping when the record is instantiated, and so they are set straight away and do not need to be updated within replace.

Show source
Register or log in to add new notes.