diff options
Diffstat (limited to 'railties/guides/source/active_model_basics.textile')
-rw-r--r-- | railties/guides/source/active_model_basics.textile | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/railties/guides/source/active_model_basics.textile b/railties/guides/source/active_model_basics.textile index 73df567579..0672669dc5 100644 --- a/railties/guides/source/active_model_basics.textile +++ b/railties/guides/source/active_model_basics.textile @@ -163,14 +163,12 @@ person.first_name_changed? #=> true </ruby> Track what was the previous value of the attribute. - <ruby> #attr_name_was accessor person.first_name_was #=> "First Name" </ruby> Track both previous and current value of the changed attribute. Returns an array if changed else returns nil - <ruby> #attr_name_change person.first_name_change #=> ["First Name", "First Name 1"] |