mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Rephrased Dirty#changed? docs
This commit is contained in:
@@ -93,7 +93,7 @@ module ActiveModel
|
||||
attribute_method_affix :prefix => 'reset_', :suffix => '!'
|
||||
end
|
||||
|
||||
# Do any attributes have unsaved changes?
|
||||
# Returns true if any attribute have unsaved changes, false otherwise.
|
||||
# person.changed? # => false
|
||||
# person.name = 'bob'
|
||||
# person.changed? # => true
|
||||
|
||||
Reference in New Issue
Block a user