From 6e8f2be51ad4e200cd9231a0591facc252cbf0c4 Mon Sep 17 00:00:00 2001 From: Edward Tsech Date: Tue, 1 May 2012 13:52:21 +0200 Subject: Add line which gives a little bit more information how *_will_change! works. --- activemodel/lib/active_model/dirty.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activemodel/lib') 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 -- cgit v1.2.3