changed()
List of attributes with unsaved changes.
person.changed # => [] person.name = 'bob' person.changed # => ['name']
# File activemodel/lib/active_model/dirty.rb, line 108 def changed changed_attributes.keys end