changed_attributes()
Instance Public methods
Returns a hash of the attributes with unsaved changes indicating their
original values like attr => original value
.
1 2 3 | person.name # => "bob" person.name = 'robert' person.changed_attributes # => {"name" => "bob"} |
Please login to continue.