提交 d99b4ec5 编写于 作者: J Jeremy Kemper 提交者: Yehuda Katz

Take care not to mix in public methods

上级 e3be52c1
......@@ -127,17 +127,18 @@ def clean_backtrace(&block)
#
# The exception is stored in the exception accessor for further inspection.
module RaiseActionExceptions
attr_accessor :exception
protected
attr_accessor :exception
def rescue_action_without_handler(e)
self.exception = e
if request.remote_addr == "0.0.0.0"
raise(e)
else
super(e)
def rescue_action_without_handler(e)
self.exception = e
if request.remote_addr == "0.0.0.0"
raise(e)
else
super(e)
end
end
end
end
setup :setup_controller_request_and_response
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册