method

*_changed?

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

This method is generated for each attribute.

Returns true if the attribute has unsaved changes.

person = Person.new
person.name = 'Andrew'
person.name_changed? # => true
Show source
Register or log in to add new notes.