Sha256: 4c0cb231f7c426da22595aeed5c41fc7eb3aceb7c23a9608e21789b590a6f004

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.development?
  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.4 lib/raygun/railtie.rb
raygun4ruby-0.0.3 lib/raygun/railtie.rb