sentry-rails/lib/sentry/rails/railtie.rb
# middlewares can't be injected after initialize
middlewares can't be injected after initialize
middlewares can ' t be injected after initialize
def override_file_handler
      ActiveSupport.on_load :action_controller do
        ActionDispatch::FileHandler.send(:prepend, Sentry::Rails::Overrides::FileHandler)
      end
    end
def override_file_handler ActiveSupport . on_load :action_controller do ActionDispatch :: FileHandler . send ( :prepend , Sentry :: Rails :: Overrides :: FileHandler ) end end
middlewares can't be injected after initialize
middlewares can ' t be injected after initialize