Method: Sidekiq::Middleware::Chain#prepend

Defined in:
lib/sidekiq/middleware/chain.rb

#prepend(klass, *args) ⇒ Object

Identical to #add except the middleware is added to the front of the chain.



125
126
127
128
# File 'lib/sidekiq/middleware/chain.rb', line 125

def prepend(klass, *args)
  remove(klass)
  entries.insert(0, Entry.new(@config, klass, *args))
end