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
This commit is contained in:
Nicholas Seckar
2005-07-14 00:34:27 +00:00
parent 2bd4ff11f8
commit fe0c7f4f76

View File

@@ -25,7 +25,10 @@ module ActionController #:nodoc:
# 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)