Sha256: 633d5cacd93bbac702e14ff05bb7837622fa9cd0c768b5c6f638d0683e8a188f
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
require 'raven' require 'rails' module Raven class Railtie < ::Rails::Railtie initializer "raven.use_rack_middleware" do |app| app.config.middleware.insert 0, "Raven::Rack" 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) elsif defined?(::ActionDispatch::ShowExceptions) require 'raven/rails/middleware/debug_exceptions_catcher' ::ActionDispatch::ShowExceptions.send(:include, Raven::Rails::Middleware::DebugExceptionsCatcher) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sentry-raven-0.4.5 | lib/raven/railtie.rb |
sentry-raven-0.4.4 | lib/raven/railtie.rb |