Sha256: 8eb132f92063f91709d96a6b6eba364c9ad3d651bfda15313d9643e03abf07e2

Contents?: true

Size: 508 Bytes

Versions: 13

Compression:

Stored size: 508 Bytes

Contents

module Rollbar
  module Middleware
    module Rack
      module Builder
        include ExceptionReporter

        def call_with_rollbar(env)
          call_without_rollbar(env)
        rescue Exception => exception
          report_exception_to_rollbar(env, exception)
          raise exception
        end

        def self.included(base)
          base.send(:alias_method, :call_without_rollbar, :call)
          base.send(:alias_method, :call, :call_with_rollbar)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rollbar-1.1.0 lib/rollbar/middleware/rack/builder.rb
rollbar-1.0.1 lib/rollbar/middleware/rack/builder.rb
rollbar-1.0.0 lib/rollbar/middleware/rack/builder.rb
rollbar-0.13.2 lib/rollbar/middleware/rack/builder.rb
rollbar-0.13.1 lib/rollbar/middleware/rack/builder.rb
rollbar-0.13.0 lib/rollbar/middleware/rack/builder.rb
rollbar-0.12.20 lib/rollbar/middleware/rack/builder.rb
rollbar-0.12.19 lib/rollbar/middleware/rack/builder.rb
rollbar-0.12.18 lib/rollbar/middleware/rack/builder.rb
rollbar-0.12.17 lib/rollbar/middleware/rack/builder.rb
rollbar-0.12.16 lib/rollbar/middleware/rack/builder.rb
rollbar-0.12.15 lib/rollbar/middleware/rack/builder.rb
rollbar-0.12.14 lib/rollbar/middleware/rack/builder.rb