diff options
author | mynyml <mynyml@gmail.com> | 2009-07-08 08:47:06 +0800 |
---|---|---|
committer | mynyml <mynyml@gmail.com> | 2009-07-08 08:47:06 +0800 |
commit | 8c7300ed5662810727d166081641b4edfed9f37c (patch) | |
tree | 3335bdedd1553acf1e51412611b881b9d4be9da7 /activesupport | |
parent | abe2038d5fea7c545ffddad1ac1252c7cbab6232 (diff) | |
download | rails-8c7300ed5662810727d166081641b4edfed9f37c.tar.gz rails-8c7300ed5662810727d166081641b4edfed9f37c.tar.bz2 rails-8c7300ed5662810727d166081641b4edfed9f37c.zip |
Callback chain stops on *true* block result (rdoc).
Relevant code (in CallbackChain#run):
break result if terminator.call(result, object)
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |