Permalink
Browse files

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
  • Loading branch information...
1 parent 2bd4ff1 commit fe0c7f4f76e8efce0d71fe705ce04e93bae74944 @seckar seckar committed Jul 14, 2005
Showing with 4 additions and 1 deletion.
  1. +4 −1 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)

0 comments on commit fe0c7f4

Please sign in to comment.