method

*_was

Importance_1
v7.2.3 - Show latest stable - 0 notes - Class: ActiveModel::Dirty
*_was public

This method is generated for each attribute.

Returns the old value of the attribute.

person = Person.new(name: 'Steph')
person.name = 'Stephanie'
person.name_was # => 'Steph'
Show source
Register or log in to add new notes.