From c97b18a347e75aadcd6fff85ecb1ba822b02e4d8 Mon Sep 17 00:00:00 2001 From: jamesprior Date: Fri, 27 Jun 2014 16:23:32 -0400 Subject: 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. --- activesupport/lib/active_support/callbacks.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activesupport') 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 -- cgit v1.2.3