class MultiTenantSupport::Sidekiq::Client
Public Instance Methods
call(worker_class, msg, queue, redis_pool) { || ... }
click to toggle source
# File lib/multi_tenant_support/sidekiq.rb, line 5 def call(worker_class, msg, queue, redis_pool) if MultiTenantSupport.current_tenant.present? msg["multi_tenant_support"] ||= { "class" => MultiTenantSupport.current_tenant.class.name, "id" => MultiTenantSupport.current_tenant.id } end yield end