From d2bc67f535c76a4cc5602c9d78b24e7566eca402 Mon Sep 17 00:00:00 2001 From: Dhruv Paranjape Date: Wed, 27 Sep 2023 11:14:55 +0200 Subject: [PATCH] Fix: sidekiq middleware correctly resolve sidekiq constant name, to solve uninitialized constant Prosopite::Middleware::Sidekiq::ServerMiddleware (NameError) --- lib/prosopite/middleware/sidekiq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prosopite/middleware/sidekiq.rb b/lib/prosopite/middleware/sidekiq.rb index 96612b2..704ad76 100644 --- a/lib/prosopite/middleware/sidekiq.rb +++ b/lib/prosopite/middleware/sidekiq.rb @@ -1,7 +1,7 @@ module Prosopite module Middleware class Sidekiq - include Sidekiq::ServerMiddleware + include ::Sidekiq::ServerMiddleware def call(_worker, _msg, _queue) Prosopite.scan