Browse files

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.
  • Loading branch information...
1 parent 9d21ef9 commit c97b18a347e75aadcd6fff85ecb1ba822b02e4d8 @jamesprior jamesprior committed Jun 27, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/lib/active_support/callbacks.rb
View
3 activesupport/lib/active_support/callbacks.rb
@@ -71,7 +71,8 @@ module Callbacks
# 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

0 comments on commit c97b18a

Please sign in to comment.