Flowdock
method

changed_attributes

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: ActiveModel::Dirty
changed_attributes() public

Returns a hash of the attributes with unsaved changes indicating their original values like attr => original value.

person.name # => "bob"
person.name = 'robert'
person.changed_attributes # => {"name" => "bob"}
Show source
Register or log in to add new notes.