lib/bugsnag/rack.rb in bugsnag-1.3.8 vs lib/bugsnag/rack.rb in bugsnag-1.4.0
- old
+ new
@@ -21,11 +21,11 @@
Bugsnag.warn("You should set your app's project_root (see https://bugsnag.com/docs/notifiers/ruby#project_root).")
end
end
# Hook up rack-based notification middlewares
- config.middleware.insert_before(Bugsnag::Middleware::Rails3Request, Bugsnag::Middleware::RackRequest) if defined?(::Rack)
- config.middleware.use Bugsnag::Middleware::WardenUser if defined?(Warden)
+ config.middleware.insert_before([Bugsnag::Middleware::Rails3Request,Bugsnag::Middleware::Callbacks], Bugsnag::Middleware::RackRequest) if defined?(::Rack)
+ config.middleware.insert_before(Bugsnag::Middleware::Callbacks, Bugsnag::Middleware::WardenUser) if defined?(Warden)
end
end
def call(env)
# Set the request data for bugsnag middleware to use
\ No newline at end of file