lib/sidekiq/throttled/job.rb in sidekiq-throttled-1.0.0.alpha.1 vs lib/sidekiq/throttled/job.rb in sidekiq-throttled-1.0.0

- old
+ new

@@ -11,11 +11,11 @@ # # class MyJob # include Sidekiq::Job # include Sidekiq::Throttled::Job # - # sidkiq_options :queue => :my_queue + # sidekiq_options :queue => :my_queue # sidekiq_throttle :threshold => { :limit => 123, :period => 1.hour } # # def perform # # ... # end @@ -27,11 +27,11 @@ # # @note Using `included` hook with extending worker with {ClassMethods} # in order to make API inline with `include Sidekiq::Job`. # # @private - def self.included(worker) - worker.send(:extend, ClassMethods) + def self.included(base) + base.extend(ClassMethods) end # Helper methods added to the singleton class of destination module ClassMethods # Registers some strategy for the worker.