class Tenantify::Sidekiq::Middlewares::Server

Public Instance Methods

call(worker, job, queue) { || ... } click to toggle source
# File lib/tenantify/sidekiq/middlewares/server.rb, line 6
def call worker, job, queue
  tenant = job.fetch("tenant")

  ::Tenantify::Perform.with(tenant) { yield }
end