Module: Sidekiq::Queue::UniqueExtension
- Included in:
- Sidekiq::Queue
- Defined in:
- lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
70 71 72 73 74 75 |
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 70 def self.included(base) base.class_eval do alias_method :clear_orig, :clear alias_method :clear, :clear_ext end end |
Instance Method Details
#clear_ext ⇒ Object
77 78 79 80 |
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 77 def clear_ext each(&:delete) clear_orig end |