mirror of
https://github.com/github/rails.git
synced 2026-01-26 06:48:59 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user