method
replace
replace(record)
private
Hide source
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 64 def replace(record) if record raise_on_type_mismatch!(record) set_inverse_instance(record) @updated = true end replace_keys(record) self.target = record end