Sha256: 9e3a1ba696226844fc09a8fb9decda0aa4c1a292fd3208a36712368ece8d42b5

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

module Penthouse
  module Sidekiq
    module Middleware
      class Server
        def call(worker_class, item, queue)
          Penthouse.switch(item['tenant']) do
            yield
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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