module Penthouse::Sidekiq::Middleware class Client def call(worker_class, item, queue, redis_pool=nil) item['tenant'] ||= Penthouse.current_tenant yield end end end