method
restore_*!
v7.1.3.4 -
Show latest stable
- Class:
ActiveModel::Dirty
restore_*!public
This method is generated for each attribute.
Restores the attribute to the old value.
person = Person.new person.name = 'Amanda' person.restore_name! person.name # => nil