changed?()
Returns true if any of the attributes have unsaved changes, false otherwise.
person.changed? # => false person.name = 'bob' person.changed? # => true
# File activemodel/lib/active_model/dirty.rb, line 136 def changed? changed_attributes.present? end