mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user