lib/raven/railtie.rb in sentry-raven-0.4.3 vs lib/raven/railtie.rb in sentry-raven-0.4.4
- old
+ new
@@ -8,9 +8,10 @@
end
config.after_initialize do
Raven.configure(true) do |config|
config.logger ||= ::Rails.logger
+ config.project_root ||= ::Rails.root
end
if defined?(::ActionDispatch::DebugExceptions)
require 'raven/rails/middleware/debug_exceptions_catcher'
::ActionDispatch::DebugExceptions.send(:include, Raven::Rails::Middleware::DebugExceptionsCatcher)