Module: Hertz::Email

Defined in:
lib/hertz/email.rb,
lib/hertz/email/engine.rb,
lib/hertz/email/version.rb,
app/mailers/hertz/email/notification_mailer.rb,
lib/generators/hertz/email/install_generator.rb,
app/jobs/hertz/email/notification_delivery_job.rb

Defined Under Namespace

Classes: Engine, InstallGenerator, NotificationDeliveryJob, NotificationMailer

Constant Summary collapse

VERSION =
'2.1.0'

Class Method Summary collapse

Class Method Details

.base_mailerObject



13
14
15
# File 'lib/hertz/email.rb', line 13

def base_mailer
  (@base_mailer || '::ApplicationMailer').constantize
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Hertz::Email)

    the object that the method was called on



17
18
19
# File 'lib/hertz/email.rb', line 17

def configure
  yield(self)
end

.deliver_notification(notification) ⇒ Object



21
22
23
# File 'lib/hertz/email.rb', line 21

def deliver_notification(notification)
  Hertz::Email::NotificationDeliveryJob.perform_later(notification)
end