changes()
Map of changed attrs => [original value, new value].
person.changes # => {} person.name = 'bob' person.changes # => { 'name' => ['bill', 'bob'] }
# File activemodel/lib/active_model/dirty.rb, line 116 def changes HashWithIndifferentAccess[changed.map { |attr| [attr, attribute_change(attr)] }] end