Sha256: 98cd5381d45891b4248a8c381a7a1cac3a70514b008afa59151e8e7976c00c0e

Contents?: true

Size: 592 Bytes

Versions: 13

Compression:

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

13 entries across 13 versions & 1 rubygems

Version Path
rollbar-2.14.1 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.14.0 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.13.3 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.13.2 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.13.1 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.13.0 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.12.0 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.11.5 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.11.4 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.11.3 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.11.2 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.11.1 lib/rollbar/plugins/rails/railtie32.rb
rollbar-2.11.0 lib/rollbar/plugins/rails/railtie32.rb