mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
Fix precedence error in failsafe rescue. Closes #8625.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -40,7 +40,7 @@ class Dispatcher
|
||||
end
|
||||
rescue Exception => exception # errors from CGI dispatch
|
||||
failsafe_response(cgi, output, '500 Internal Server Error', exception) do
|
||||
controller ||= ApplicationController rescue ActionController::Base
|
||||
controller ||= (ApplicationController rescue ActionController::Base)
|
||||
controller.process_with_exception(request, response, exception).out(output)
|
||||
end
|
||||
ensure
|
||||
|
||||
Reference in New Issue
Block a user