提交 fe0c7f4f 编写于 作者: N Nicholas Seckar

Fix rescue handling to erase both render and redirect results

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 2bd4ff11
......@@ -25,7 +25,10 @@ def process_with_exception(request, response, exception)
# Exception handler called when the performance of an action raises an exception.
def rescue_action(exception)
log_error(exception) unless logger.nil?
erase_render_results if performed?
if performed?
erase_render_results
erase_redirect_results
end
if consider_all_requests_local || local_request?
rescue_action_locally(exception)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册