提交 e4e275dd 编写于 作者: J Jeremy Kemper

Fix syntax error in dispatcher than wrecked failsafe responses. Closes #8625.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 b94f8e1d
*SVN*
* Fix syntax error in dispatcher than wrecked failsafe responses. #8625 [mtitorenko]
* Scaffolded validation errors set the appropriate HTTP status for XML responses. #6946, #8622 [Manfred Stienstra, mmmultiworks]
* Sexy migrations for the session_migration generator. #8561 [Vladislav]
......
......@@ -40,8 +40,7 @@ def dispatch(cgi = nil, session_options = ActionController::CgiRequest::DEFAULT_
end
rescue Exception => exception # errors from CGI dispatch
failsafe_response(cgi, output, '500 Internal Server Error', exception) do
controller ||= ApplicationController rescue LoadError nil
controller ||= ActionController::Base
controller ||= ApplicationController rescue ActionController::Base
controller.process_with_exception(request, response, exception).out(output)
end
ensure
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册