提交 dfcb5af2 编写于 作者: J Jeremy Kemper

Move rescue_action_with_handler from rescue_action to perform_action so it...

Move rescue_action_with_handler from rescue_action to perform_action so it isn't clobbered by test overrides. References #9449, closes #9645.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 40f9fd39
......@@ -89,8 +89,6 @@ def rescue_action(exception)
log_error(exception) if logger
erase_results if performed?
return if rescue_action_with_handler(exception)
# Let the exception alter the response if it wants.
# For example, MethodNotAllowed sets the Allow header.
if exception.respond_to?(:handle_response!)
......@@ -176,6 +174,8 @@ def rescue_action_with_handler(exception)
def perform_action_with_rescue #:nodoc:
perform_action_without_rescue
rescue Exception => exception # errors from action performed
return if rescue_action_with_handler(exception)
rescue_action(exception)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册