aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2008-10-09 00:35:03 +1030
committerRyan Bigg <radarlistener@gmail.com>2008-10-09 00:35:03 +1030
commit3979d267522f9aaef92b5f21a65abab5046cefaa (patch)
treeed383b7f9211b66a976bd57583757cfc54ce1753 /activerecord/lib
parent224060aa8287fcdd8aa5ea11320fc5f373f01459 (diff)
parentb4da5f67708b2699a21f8bb39f4d10865c1814d4 (diff)
downloadrails-3979d267522f9aaef92b5f21a65abab5046cefaa.tar.gz
rails-3979d267522f9aaef92b5f21a65abab5046cefaa.tar.bz2
rails-3979d267522f9aaef92b5f21a65abab5046cefaa.zip
Merge branch 'master' of git@github.com:lifo/docrails
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/callbacks.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index dd7ae51096..42bfe34505 100644
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -5,7 +5,7 @@ module ActiveRecord
# before or after an alteration of the object state. This can be used to make sure that associated and
# dependent objects are deleted when +destroy+ is called (by overwriting +before_destroy+) or to massage attributes
# before they're validated (by overwriting +before_validation+). As an example of the callbacks initiated, consider
- # the <tt>Base#save</tt> call:
+ # the <tt>Base#save</tt> call for a new record:
#
# * (-) <tt>save</tt>
# * (-) <tt>valid</tt>
@@ -22,7 +22,8 @@ module ActiveRecord
# * (8) <tt>after_save</tt>
#
# That's a total of eight callbacks, which gives you immense power to react and prepare for each state in the
- # Active Record lifecycle.
+ # Active Record lifecycle. The sequence for calling <tt>Base#save</tt> an existing record is similar, except that each
+ # <tt>_on_create</tt> callback is replaced by the corresponding <tt>_on_update</tt> callback.
#
# Examples:
# class CreditCard < ActiveRecord::Base