From fe0c7f4f76e8efce0d71fe705ce04e93bae74944 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Thu, 14 Jul 2005 00:34:27 +0000 Subject: [PATCH] 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 --- actionpack/lib/action_controller/rescue.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/rescue.rb b/actionpack/lib/action_controller/rescue.rb index 376a7f1aec..071dd7daf1 100644 --- a/actionpack/lib/action_controller/rescue.rb +++ b/actionpack/lib/action_controller/rescue.rb @@ -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) -- GitLab