Method: ActiveModel::Dirty#changed
- Defined in:
- activemodel/lib/active_model/dirty.rb
#changed ⇒ Object
Returns an array with the name of the attributes with unsaved changes.
person.changed # => []
person.name = 'bob'
person.changed # => ["name"]
295 296 297 |
# File 'activemodel/lib/active_model/dirty.rb', line 295 def changed mutations_from_database.changed_attribute_names end |