Module: SidekiqStatus::Worker

Defined in:
lib/sidekiq_status/worker.rb

Defined Under Namespace

Modules: InstanceMethods, Prepending

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/sidekiq_status/worker.rb', line 4

def self.included(base)
  base.class_eval do
    include Sidekiq::Worker

    include(InstanceMethods)

    base.define_singleton_method(:new) do |*args, &block|
      super(*args, &block).extend(Prepending)
    end
  end
end