lib/raven/rails/middleware/debug_exceptions_catcher.rb in sentry-raven-0.1 vs lib/raven/rails/middleware/debug_exceptions_catcher.rb in sentry-raven-0.2
- old
+ new
@@ -1,16 +1,16 @@
module Raven
module Rails
module Middleware
module DebugExceptionsCatcher
def self.included(base)
- base.send(:alias_method_chain, :render_exception, :airbrake)
+ base.send(:alias_method_chain, :render_exception, :raven)
end
- def render_exception_with_airbrake(env, exception)
+ def render_exception_with_raven(env, exception)
evt = Raven::Event.capture_rack_exception(exception, env)
Raven.send(evt) if evt
- render_exception_without_airbrake(env, exception)
+ render_exception_without_raven(env, exception)
end
end
end
end
end