mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
documents that :terminator is a string to be eval'ed, and that it sees the result variable
This commit is contained in:
@@ -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"
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user