Fixing the fix, but not quite
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
3d2f0001ea
commit
5b52b716b7
|
@ -24,13 +24,11 @@ module ActionController #:nodoc:
|
|||
protected
|
||||
# Exception handler called when the performance of an action raises an exception.
|
||||
def rescue_action(exception)
|
||||
log_error(exception) unless logger.nil?
|
||||
if performed?
|
||||
erase_render_results
|
||||
erase_redirect_results
|
||||
end
|
||||
log_error(exception) if logger
|
||||
erase_results if perfomed?
|
||||
|
||||
if consider_all_requests_local || local_request?
|
||||
@template.send(:assign_variables_from_controller)
|
||||
rescue_action_locally(exception)
|
||||
else
|
||||
rescue_action_in_public(exception)
|
||||
|
|
Loading…
Reference in New Issue