module ActiveModel::Dirty
def changed?
person.name = 'bob'
person.changed? # => false
Returns +true+ if any of the attributes has unsaved changes, +false+ otherwise.
def changed? mutations_from_database.any_changes? end
def changed? mutations_from_database.any_changes? end