Module: Exceptional::ExceptionMiddleware
- Defined in:
- lib/exceptional/integration/exception_middleware.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/exceptional/integration/exception_middleware.rb', line 4 def self.included(base) base.send(:alias_method_chain,:render_exception,:exceptional) end |
Instance Method Details
#render_exception_with_exceptional(env, exception) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/exceptional/integration/exception_middleware.rb', line 8 def render_exception_with_exceptional(env,exception) ::Exceptional::Catcher.handle_with_controller(exception, env['action_controller.instance'], Rack::Request.new(env)) render_exception_without_exceptional(env,exception) end |