Sha256: 3e5898d631fb586b03dc3dc6c09884e8a7068aafa01634a6aca06cc161cf1314

Contents?: true

Size: 189 Bytes

Versions: 16

Compression:

Stored size: 189 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
penthouse-0.9.0 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.8.0 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.7.5 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.7.4 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.7.3 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.7.2 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.7.1 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.7.0 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.6.0 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.5.0 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.4.2 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.4.1 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.4.0 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.3.0 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.2.0 lib/penthouse/sidekiq/middleware/client.rb
penthouse-0.1.0 lib/penthouse/sidekiq/middleware/client.rb