method
replace
v3.1.0 -
Show latest stable
- Class:
ActiveRecord::Associations::HasOneThroughAssociation
replace(record)public
No documentation available.
# File activerecord/lib/active_record/associations/has_one_through_association.rb, line 7
def replace(record)
create_through_record(record)
self.target = record
end