From 02e711bf1c2afe13a84ded3167bb633dcb4f8cb7 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Thu, 5 Aug 2010 22:54:43 +0200 Subject: documents that :terminator is a string to be eval'ed, and that it sees the result variable --- activesupport/lib/active_support/callbacks.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/callbacks.rb') 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: # # * :terminator - 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 result variable: # # define_callbacks :validate, :terminator => "result == false" # -- cgit v1.2.3