1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "correcting the documentation that default to false. it does not default to false. returing either false or nil will not halt the chain unless :terminator is explicitly mentioned"

This reverts commit cd87cf771a.

Reason: it does default to "false".
This commit is contained in:
Xavier Noria 2010-08-05 22:46:04 +02:00
parent 86842fd1ce
commit 232218f465

View file

@ -522,13 +522,14 @@ module ActiveSupport
#
# This macro accepts the following options:
#
# * <tt>:terminator</tt> - Indicates when a before filter is considered to be halted.
# * <tt>:terminator</tt> - Indicates when a before filter is considered
# to be halted.
#
# define_callbacks :validate, :terminator => "result == false"
#
# In the example above, if any before validate callback returns +false+,
# other callbacks are not executed. Note that in this case if the callback
# returns +nil+ then other callbacks are still executed.
# In the example above, if any before validate callbacks returns +false+,
# other callbacks are not executed. Defaults to "false", meaning no value
# halts the chain.
#
# * <tt>:rescuable</tt> - By default, after filters are not executed if
# the given block or a before filter raises an error. Set this option to