aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorjamesprior <james@mabonus.net>2014-06-27 16:23:32 -0400
committerjamesprior <james@mabonus.net>2014-06-27 16:23:32 -0400
commitc97b18a347e75aadcd6fff85ecb1ba822b02e4d8 (patch)
tree4d5892628b1638913da2a7956ea7e50648ed01a0 /activesupport/lib
parent9d21ef9388cd16a9c1e8d356a1ba15895451c873 (diff)
downloadrails-c97b18a347e75aadcd6fff85ecb1ba822b02e4d8.tar.gz
rails-c97b18a347e75aadcd6fff85ecb1ba822b02e4d8.tar.bz2
rails-c97b18a347e75aadcd6fff85ecb1ba822b02e4d8.zip
Update documentation for run_callbacks
In some cases run_callbacks will return nil. I'm attempting to update the documentation for the method to clarify.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/callbacks.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index 06505bddf9..e5dbe214b4 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -71,7 +71,8 @@ module ActiveSupport
# order.
#
# If the callback chain was halted, returns +false+. Otherwise returns the
- # result of the block, or +true+ if no block is given.
+ # result of the block, nil if no callbacks have been set, or +true+
+ # if callbacks have been set but no block is given.
#
# run_callbacks :save do
# save