From e69924ecdc23558158af952a4a11cb4b5080f4b5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 17 Jul 2005 09:25:24 +0000 Subject: Log if filters return false and halt execution #1735 [Michael Koziarski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/filters.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/filters.rb') diff --git a/actionpack/lib/action_controller/filters.rb b/actionpack/lib/action_controller/filters.rb index 1a2423b1e2..f3999a853e 100644 --- a/actionpack/lib/action_controller/filters.rb +++ b/actionpack/lib/action_controller/filters.rb @@ -325,7 +325,11 @@ module ActionController #:nodoc: "Filters need to be either a symbol, proc/method, or class implementing a static filter method" ) end - return false if filter_result == false + + if filter_result == false + logger.info "Filter chain halted as [#{filter}] returned false" + return false + end end end -- cgit v1.2.3