Sha256: 2a89eb0c0ce15b94b3b09778475a443268785e1fc6393c08e1e2d6c8163e0b8a
Contents?: true
Size: 512 Bytes
Versions: 5
Compression:
Stored size: 512 Bytes
Contents
class PeakFlowUtils::NotifierRack def initialize(app, options = {}) @app = app @options = options end def call(env) @app.call(env) rescue Exception => e # rubocop:disable Lint/RescueException controller = env["action_controller.instance"] request = controller&.request PeakFlowUtils::Notifier.with_parameters(rack: {get: request.GET, post: request.POST}) do PeakFlowUtils::Notifier.notify( environment: env, error: e ) end raise e end end
Version data entries
5 entries across 5 versions & 1 rubygems