Module: Raven::Rails::Middleware::DebugExceptionsCatcher

Defined in:
lib/raven/integrations/rails/middleware/debug_exceptions_catcher.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/raven/integrations/rails/middleware/debug_exceptions_catcher.rb', line 5

def self.included(base)
  base.send(:alias_method_chain, :render_exception, :raven)
end

Instance Method Details

#render_exception_with_raven(env, exception) ⇒ Object



9
10
11
12
# File 'lib/raven/integrations/rails/middleware/debug_exceptions_catcher.rb', line 9

def render_exception_with_raven(env, exception)
  Raven::Rack.capture_exception(exception, env)
  render_exception_without_raven(env, exception)
end