method
restore_*!
v8.1.1 -
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