mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
documents that :terminator is a string to be eval'ed, and that it sees the result variable
This commit is contained in:
parent
232218f465
commit
02e711bf1c
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue