Sha256: 62385120a22eb4bf20394e852d98867e4e64ef73433a8a236401324abf6b3d37

Contents?: true

Size: 256 Bytes

Versions: 6

Compression:

Stored size: 256 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
penthouse-0.13.2 lib/penthouse/sidekiq/middleware/server.rb
penthouse-0.13.1 lib/penthouse/sidekiq/middleware/server.rb
penthouse-0.13 lib/penthouse/sidekiq/middleware/server.rb
penthouse-0.12.2 lib/penthouse/sidekiq/middleware/server.rb
penthouse-0.12.1 lib/penthouse/sidekiq/middleware/server.rb
penthouse-0.12.0 lib/penthouse/sidekiq/middleware/server.rb