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:
David Heinemeier Hansson
2005-07-17 09:25:24 +00:00
parent 02c1dae551
commit e69924ecdc

View File

@@ -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