Sha256: 6958be2da7e3d1727b8328799006e7f6a59d6bff8bb5a36bb4dde4ac68b15193

Contents?: true

Size: 589 Bytes

Versions: 54

Compression:

Stored size: 589 Bytes

Contents

require 'rails/railtie'
require 'rollbar/plugins/rails/railtie_mixin'

module Rollbar
  class Railtie < ::Rails::Railtie
    include Rollbar::RailtieMixin

    initializer 'rollbar.middleware.rails' do |app|
      require 'rollbar/middleware/rails/rollbar'
      require 'rollbar/middleware/rails/show_exceptions'

      app.config.middleware.insert_after ActionDispatch::ShowExceptions,
                                         Rollbar::Middleware::Rails::RollbarMiddleware
      ActionDispatch::ShowExceptions.send(:include, Rollbar::Middleware::Rails::ShowExceptions)
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
rollbar-3.2.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.1.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.1.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.1.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.0.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.0.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.27.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.27.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.26.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.26.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.25.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.25.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.24.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.23.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.23.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.23.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.22.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.22.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.21.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.20.2 lib/rollbar/plugins/rails/railtie30.rb