From 8c7300ed5662810727d166081641b4edfed9f37c Mon Sep 17 00:00:00 2001 From: mynyml Date: Wed, 8 Jul 2009 08:47:06 +0800 Subject: Callback chain stops on *true* block result (rdoc). Relevant code (in CallbackChain#run): break result if terminator.call(result, object) --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index f049189b9a..238d1b6804 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -237,7 +237,7 @@ module ActiveSupport # * the result from the callback # * the object which has the callback # - # If the result from the block evaluates to false, the callback chain is stopped. + # If the result from the block evaluates to +true+, the callback chain is stopped. # # Example: # class Storage -- cgit v1.2.3