lib/active_job/scheduler/mailer.rb
# Deliver an email on a regular basis in the background.
#
# @param [Symbol] mail - Mailer method to deliver
# @param [String] nat - Natural language text
# @param [Array] arguments - Args to pass to the mailer method
Deliver an email on a regular basis in the background.
Deliver an email on a regular basis in the background .
def repeat(mail, nat = nil, arguments: [], each: nil, **interval)
          interval = { nat: nat } if nat.present?
          self.events ||= []
          self.events << {
            name: "#{name}##{mail}",
            class_name: name,
            arguments: arguments,
            interval: interval,
            mail: mail,
            each: each
          }
        end
def repeat ( mail , nat = nil , arguments : [ ] , each : nil , ** interval ) interval = { nat : nat } if nat . present? self . events ||= [ ] self . events << { name : "#{name}##{mail}" , class_name : name , arguments : arguments , interval : interval , mail : mail , each : each } end
Deliver an email on a regular basis in the background.
Deliver an email on a regular basis in the background .
mail
<not_specific>
nat
<not_specific>
arguments
<not_specific>
each
<not_specific>
interval
<not_specific>
<not_specific>
Args to pass to the mailer method
Args to pass to the mailer method