changed?()
public
Returns true if any of the attributes has unsaved changes,
false otherwise.
person.changed?
person.name = 'bob'
person.changed?
# File activemodel/lib/active_model/dirty.rb, line 279
def changed?
mutations_from_database.any_changes?
end