diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-17 09:25:24 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-17 09:25:24 +0000 |
commit | e69924ecdc23558158af952a4a11cb4b5080f4b5 (patch) | |
tree | e6c3ed7a9706707be73462d9dd45a4ae8e5a827c /actionpack | |
parent | 02c1dae551b5c1891423ce46a0e4d8b06048b60b (diff) | |
download | rails-e69924ecdc23558158af952a4a11cb4b5080f4b5.tar.gz rails-e69924ecdc23558158af952a4a11cb4b5080f4b5.tar.bz2 rails-e69924ecdc23558158af952a4a11cb4b5080f4b5.zip |
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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/filters.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |