method

restore_*!

Importance_1
v8.0.0 - Show latest stable - 0 notes - 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
Show source
Register or log in to add new notes.