1
0
Fork 0
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:
Xavier Noria 2010-08-05 22:54:43 +02:00
parent 232218f465
commit 02e711bf1c

View file

@ -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"
#