aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_model_basics.textile
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/source/active_model_basics.textile')
-rw-r--r--railties/guides/source/active_model_basics.textile8
1 files changed, 2 insertions, 6 deletions
diff --git a/railties/guides/source/active_model_basics.textile b/railties/guides/source/active_model_basics.textile
index e4c84365d3..92fa5bc8f4 100644
--- a/railties/guides/source/active_model_basics.textile
+++ b/railties/guides/source/active_model_basics.textile
@@ -57,18 +57,14 @@ class Person
def update
_run_update_callbacks do
- puts 'saving...'
+ # This will call when we are trying to call update on object.
end
end
def reset_me
- puts 'before saving...'
+ # This method will call when you are calling update on object as a before_update callback as defined.
end
end
-
-person = Person.new
-person.update # before saving...
- # saving...
</ruby>
h3. Changelog