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