lib/sentry/rails/railtie.rb in sentry-rails-4.1.5 vs lib/sentry/rails/railtie.rb in sentry-rails-4.1.6

- old
+ new

@@ -17,16 +17,21 @@ end config.after_initialize do next unless Sentry.initialized? + configure_project_root configure_sentry_logger extend_controller_methods extend_active_job if defined?(ActiveJob) override_streaming_reporter setup_backtrace_cleanup_callback inject_breadcrumbs_logger activate_tracing + end + + def configure_project_root + Sentry.configuration.project_root = ::Rails.root.to_s end def configure_sentry_logger Sentry.configuration.logger = ::Rails.logger end