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-2.20.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.20.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.19.4 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.19.3 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.19.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.19.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.19.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.18.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.18.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.17.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.16.4 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.16.3 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.16.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.16.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.15.6 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.15.5 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.15.4 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.15.3 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.15.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-2.15.1 lib/rollbar/plugins/rails/railtie30.rb