Class: CheckerJobs::Notifiers::Email::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/checker_jobs/notifiers/email.rb

Overview

Simple mailer class based on ActionMailer to send HTML emails while reusing the ActionMailer configuration of the application embedding the checkers.

Instance Method Summary collapse

Instance Method Details

#notify(body, options) ⇒ Object



49
50
51
52
53
# File 'lib/checker_jobs/notifiers/email.rb', line 49

def notify(body, options)
  mail(options) do |format|
    format.html { render html: body.html_safe }
  end
end