Class: Captivus::RailsCapturer
- Inherits:
-
RackCapturer
- Object
- RackCapturer
- Captivus::RailsCapturer
- Defined in:
- lib/captivus/rails_capturer.rb
Instance Method Summary collapse
Methods inherited from RackCapturer
Constructor Details
This class inherits a constructor from Captivus::RackCapturer
Instance Method Details
#call(env) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/captivus/rails_capturer.rb', line 6 def call(env) @app.call env rescue Exception => exception controller = env['action_controller.instance'] params = controller.request.filtered_parameters params.delete 'controller' params.delete 'action' Captivus.notify exception, 'context' => { 'controller' => controller.controller_name, 'action' => controller.action_name, 'params' => params } raise end |