module Sidekiq::Mailer::ClassMethods

Constants

DEFAULT_OPTIONS

Public Instance Methods

method_missing(method_name, *args) click to toggle source
Calls superclass method
# File lib/sidekiq_mailer.rb, line 61
def method_missing(method_name, *args)
  if action_methods.include?(method_name.to_s)
    Sidekiq::Mailer::Proxy.new(self, method_name, *args)
  else
    super
  end
end
sidekiq_options(opts={}) click to toggle source

Allows customization for this type of Worker. Legal options:

:queue - use a named queue for this Worker, default 'default'
:retry - enable the RetryJobs middleware for this Worker, default *true*
:timeout - timeout the perform method after N seconds, default *nil*
:backtrace - whether to save any error backtrace in the retry payload to display in web UI,
   can be true, false or an integer number of lines to save, default *false*
# File lib/sidekiq_mailer.rb, line 44
def sidekiq_options(opts={})
  self.sidekiq_options_hash = get_sidekiq_options.merge(stringify_keys(opts || {}))
end