Module: CaptainConfig::SidekiqMiddlewareFactory::SidekiqMiddleware

Defined in:
lib/captain_config/middlewares/sidekiq_middleware_factory.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



17
18
19
# File 'lib/captain_config/middlewares/sidekiq_middleware_factory.rb', line 17

def self.included(klass)
  klass.extend(ClassMethods)
end

Instance Method Details

#call(_worker, _job, _queue) ⇒ Object



48
49
50
51
52
# File 'lib/captain_config/middlewares/sidekiq_middleware_factory.rb', line 48

def call(_worker, _job, _queue)
  self.class.load if self.class.needs_load?

  yield
end