Sha256: c246efcf7010e6f28da48ad88b4ed5e04317e49e4ba515e3ff97d28c182af64b

Contents?: true

Size: 507 Bytes

Versions: 11

Compression:

Stored size: 507 Bytes

Contents

Rollbar.plugins.define('rack') do
  dependency { !configuration.disable_monkey_patch }
  dependency { !configuration.disable_rack_monkey_patch }

  execute do
    if defined?(Rack::Builder)
      require 'rollbar/middleware/rack/builder'
      Rack::Builder.send(:include, Rollbar::Middleware::Rack::Builder)
    end

    if defined?(Rack::Test::Session)
      require 'rollbar/middleware/rack/test_session'
      Rack::Test::Session.send(:include, Rollbar::Middleware::Rack::TestSession)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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