method

*_change

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveModel::Dirty
*_change public

This method is generated for each attribute.

Returns the old and the new value of the attribute.

person = Person.new
person.name = 'Nick'
person.name_change # => [nil, 'Nick']
Show source
Register or log in to add new notes.