Sha256: 68232e178cd021daac85607c33b0d2beba5a17942cd407c14a641db2e4c1184c
Contents?: true
Size: 281 Bytes
Versions: 3
Compression:
Stored size: 281 Bytes
Contents
module WatCatcher class Middleware def initialize(app) @app = app end def call(env) @app.call(env) rescue Exception => exception SidekiqPoster.report(exception, request: env["action_controller.instance"].request) raise end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wat_catcher-0.2.2 | lib/wat_catcher/middleware.rb |
wat_catcher-0.2.1 | lib/wat_catcher/middleware.rb |
wat_catcher-0.2.0 | lib/wat_catcher/middleware.rb |