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