Sha256: 543eadd55b096b60c53e37225431c9e79af2c2d1749cd685d142f3715c5a4c9d
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 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::RackExceptionInterceptor" end config.to_prepare do Raygun.configuration.logger ||= Rails.logger Raygun.configuration.silence_reporting ||= !Rails.env.production? end rake_tasks do load "tasks/raygun.tasks" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
raygun4ruby-0.0.6 | lib/raygun/railtie.rb |
raygun4ruby-0.0.5 | lib/raygun/railtie.rb |