Sha256: a4d49215b54a79ffd2cd6665b6c585800555466e5e1a3cf009995b1ee4bd908a

Contents?: true

Size: 591 Bytes

Versions: 41

Compression:

Stored size: 591 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::DebugExceptions,
                                         Rollbar::Middleware::Rails::RollbarMiddleware
      ActionDispatch::DebugExceptions.send(:include, Rollbar::Middleware::Rails::ShowExceptions)
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

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