aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-08-05 22:54:43 +0200
committerXavier Noria <fxn@hashref.com>2010-08-05 22:54:43 +0200
commit02e711bf1c2afe13a84ded3167bb633dcb4f8cb7 (patch)
tree9fbd839d2f7c47cb8409e70eea25df5ee60398f3 /activesupport/lib/active_support
parent232218f46533a4f2512d522dc7c730eaf4cedd82 (diff)
downloadrails-02e711bf1c2afe13a84ded3167bb633dcb4f8cb7.tar.gz
rails-02e711bf1c2afe13a84ded3167bb633dcb4f8cb7.tar.bz2
rails-02e711bf1c2afe13a84ded3167bb633dcb4f8cb7.zip
documents that :terminator is a string to be eval'ed, and that it sees the result variable
Diffstat (limited to 'activesupport/lib/active_support')
-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 4950d009d1..5e0c5b6e98 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -523,7 +523,8 @@ module ActiveSupport
# This macro accepts the following options:
#
# * <tt>:terminator</tt> - Indicates when a before filter is considered
- # to be halted.
+ # to halted. This is a string to be eval'ed and has the result of the
+ # very filter available in the <tt>result</tt> variable:
#
# define_callbacks :validate, :terminator => "result == false"
#