Class: Captivus::RackCapturer

Inherits:
Object
  • Object
show all
Defined in:
lib/captivus/rack_capturer.rb

Direct Known Subclasses

RailsCapturer

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ RackCapturer

Returns a new instance of RackCapturer.



5
6
7
# File 'lib/captivus/rack_capturer.rb', line 5

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
14
# File 'lib/captivus/rack_capturer.rb', line 9

def call(env)
  @app.call env
rescue Exception => exception
  Captivus.notify exception, :context => {:params => Rack::Request.new(env).params}
  raise
end