diff options
author | Edward Tsech <edtsech@gmail.com> | 2012-05-01 13:52:21 +0200 |
---|---|---|
committer | Edward Tsech <edtsech@gmail.com> | 2012-05-01 13:52:21 +0200 |
commit | 6e8f2be51ad4e200cd9231a0591facc252cbf0c4 (patch) | |
tree | 979ff5904e6e6c8422d464a03fe04ad6d93f3f1e /activemodel | |
parent | b8d2fecbf5979816c8dd70af116595f8c762b582 (diff) | |
download | rails-6e8f2be51ad4e200cd9231a0591facc252cbf0c4.tar.gz rails-6e8f2be51ad4e200cd9231a0591facc252cbf0c4.tar.bz2 rails-6e8f2be51ad4e200cd9231a0591facc252cbf0c4.zip |
Add line which gives a little bit more information how *_will_change! works.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/dirty.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb index d327913824..430e26f3cf 100644 --- a/activemodel/lib/active_model/dirty.rb +++ b/activemodel/lib/active_model/dirty.rb @@ -83,6 +83,7 @@ module ActiveModel # in-place attributes. # # person.name_will_change! + # person.name_change # => ['Bill', 'Bill'] # person.name << 'y' # person.name_change # => ['Bill', 'Billy'] module Dirty |