diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-05 22:54:43 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-05 22:54:43 +0200 |
commit | 02e711bf1c2afe13a84ded3167bb633dcb4f8cb7 (patch) | |
tree | 9fbd839d2f7c47cb8409e70eea25df5ee60398f3 | |
parent | 232218f46533a4f2512d522dc7c730eaf4cedd82 (diff) | |
download | rails-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
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 3 |
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" # |