Sha256: 660c61b68754ff3b3155b4741449be36897b8394f445179cd626600c4bb33c59

Contents?: true

Size: 631 Bytes

Versions: 11

Compression:

Stored size: 631 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

11 entries across 11 versions & 1 rubygems

Version Path
rollbar-3.6.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.5.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.5.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.5.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.4.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.4.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.4.0 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.3.3 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.3.2 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.3.1 lib/rollbar/plugins/rails/railtie30.rb
rollbar-3.3.0 lib/rollbar/plugins/rails/railtie30.rb