method

changed?

changed?()
public

Returns true if any of the attributes have unsaved changes, false otherwise.

person.changed? # => false
person.name = 'bob'
person.changed? # => true