Module: Sidekiq::Extensions::ActionMailer

Defined in:
lib/sidekiq/extensions/action_mailer.rb

Instance Method Summary collapse

Instance Method Details

#delay(options = {}) ⇒ Object



27
28
29
# File 'lib/sidekiq/extensions/action_mailer.rb', line 27

def delay(options={})
  Proxy.new(DelayedMailer, self, options)
end

#delay_for(interval, options = {}) ⇒ Object



30
31
32
# File 'lib/sidekiq/extensions/action_mailer.rb', line 30

def delay_for(interval, options={})
  Proxy.new(DelayedMailer, self, options.merge('at' => Time.now.to_f + interval.to_f))
end