Module: Sidekiq::Worker::Overrides

Included in:
Sidekiq::Worker
Defined in:
lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb

Defined Under Namespace

Modules: Testing

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


30
31
32
33
34
35
36
37
38
# File 'lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb', line 30

def self.included(base)
  base.extend Testing
  base.class_eval do
    class << self
      alias_method :clear_all_orig, :clear_all
      alias_method :clear_all, :clear_all_ext
    end
  end
end