Permalink
Browse files

clean up copy-paste from airbrake gem ;)

  • Loading branch information...
1 parent c4c583f commit 6801abb15946976099e9145f5af95ac621b98a0d @elucid elucid committed May 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/raven/rails/middleware/debug_exceptions_catcher.rb
@@ -3,13 +3,13 @@ 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

0 comments on commit 6801abb

Please sign in to comment.