Sha256: 8def50acd09efd23f25eed04d935b4ae7da56f183200910841ec2d2496cb2565

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
penthouse-0.10.1 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.10.0 lib/penthouse/sidekiq/middleware/client.rb