Permalink
Browse files

let's catch errors that happen early in the stack

fixes #76,closes #77
  • Loading branch information...
1 parent 22b4b82 commit 4081663b2ebfc2c52f54ca6b816568dfce0c4bc2 @shime shime committed May 9, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 lib/airbrake/railtie.rb
View
@@ -16,3 +16,4 @@ Gemfile.lock
.bundle
*.rbc
+*.plan
View
@@ -9,8 +9,8 @@ class Railtie < ::Rails::Railtie
end
initializer "airbrake.use_rack_middleware" do |app|
- app.config.middleware.use "Airbrake::Rack" unless defined?(::ActionDispatch::DebugExceptions)
app.config.middleware.insert 0, "Airbrake::UserInformer"
+ app.config.middleware.insert_after "Airbrake::UserInformer","Airbrake::Rack"
end
config.after_initialize do

0 comments on commit 4081663

Please sign in to comment.