class AmokTime::SidekiqMiddleware::Server

Pull the mocked time out and set the current thread to use it.

Public Instance Methods

call(worker, msg, queue) { || ... } click to toggle source
# File lib/amok_time/sidekiq_middleware.rb, line 14
def call(worker, msg, queue)
  Thread.current[:amok_time] = msg['amok_time']
  yield
end