1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Rephrased Dirty#changed? docs

This commit is contained in:
Sebastian Martinez 2011-04-26 23:37:11 -03:00
parent 4554983ab1
commit c4b494bdc4

View file

@ -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