aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/callbacks.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-12-23 00:15:10 +0100
committerXavier Noria <fxn@hashref.com>2010-12-23 00:15:10 +0100
commit8a3132b8a936bc4d32858d10fd985c3de5e57fd8 (patch)
treee0ae41f2a2fa66754300afa81bbb0aab55b8f702 /activesupport/lib/active_support/callbacks.rb
parent55f2e9f898cb6d1c518eaef23592638813c23450 (diff)
parent15ce225ab035bf92e2cb9994db80e60e1cd609bd (diff)
downloadrails-8a3132b8a936bc4d32858d10fd985c3de5e57fd8.tar.gz
rails-8a3132b8a936bc4d32858d10fd985c3de5e57fd8.tar.bz2
rails-8a3132b8a936bc4d32858d10fd985c3de5e57fd8.zip
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'activesupport/lib/active_support/callbacks.rb')
-rw-r--r--activesupport/lib/active_support/callbacks.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index 844237fe6a..32ebea8571 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -447,6 +447,10 @@ module ActiveSupport
# set_callback :save, :after, :after_meth, :if => :condition
# set_callback :save, :around, lambda { |r| stuff; yield; stuff }
#
+ # If the second argument is not :before, :after or :around then an implicit :before is assumed.
+ # It means the first example mentioned above can also be written as:
+ # set_callback :save, :before_meth
+ #
# Use skip_callback to skip any defined one.
#
# When creating or skipping callbacks, you can specify conditions that