aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-04-26 23:37:11 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-04-26 23:37:11 -0300
commitc4b494bdc44a7aaa6b38b512d0bf6cfb8f1cfb15 (patch)
treece46603435ce5442d9f60ba1a006dc07fcee8f70 /activemodel
parent4554983ab18ec60a3575f469125c3b0d98df4e33 (diff)
downloadrails-c4b494bdc44a7aaa6b38b512d0bf6cfb8f1cfb15.tar.gz
rails-c4b494bdc44a7aaa6b38b512d0bf6cfb8f1cfb15.tar.bz2
rails-c4b494bdc44a7aaa6b38b512d0bf6cfb8f1cfb15.zip
Rephrased Dirty#changed? docs
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/dirty.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb
index 5ede78617a..3b412d3dd7 100644
--- a/activemodel/lib/active_model/dirty.rb
+++ b/activemodel/lib/active_model/dirty.rb
@@ -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