Sha256: 473988031cc59bcec9b78793ae85bfbf0ee61df57bf382db3e3177a3cd88acad
Contents?: true
Size: 926 Bytes
Versions: 8
Compression:
Stored size: 926 Bytes
Contents
class Raygun::Railtie < Rails::Railtie initializer "raygun.configure_rails_initialization" do |app| # Thanks Airbrake: See https://github.com/rails/rails/pull/8624 middleware = if defined?(ActionDispatch::DebugExceptions) # Rails >= 3.2.0 "ActionDispatch::DebugExceptions" else # Rails < 3.2.0 "ActionDispatch::ShowExceptions" end app.config.middleware.insert_after middleware, "Raygun::Middleware::RackExceptionInterceptor" # Affected User tracking require "raygun/middleware/rails_insert_affected_user" app.config.middleware.insert_after Raygun::Middleware::RackExceptionInterceptor, "Raygun::Middleware::RailsInsertAffectedUser" end config.to_prepare do Raygun.default_configuration.logger = Rails.logger Raygun.default_configuration.enable_reporting = Rails.env.production? end rake_tasks do load "tasks/raygun.tasks" end end
Version data entries
8 entries across 8 versions & 1 rubygems