Flowdock
method

previous_changes

Importance_1
v3.2.8 - Show latest stable - 0 notes - Class: ActiveModel::Dirty
previous_changes() public

Map of attributes that were changed when the model was saved.

person.name # => 'bob'
person.name = 'robert'
person.save
person.previous_changes # => {'name' => ['bob, 'robert']}
Show source
Register or log in to add new notes.