Class: MultiNotifier::Middlewares::Mail::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/multi_notifier/middlewares/mail.rb

Instance Method Summary collapse

Instance Method Details

#notificaiton(headers, text_body, html_body) ⇒ Object



21
22
23
24
25
26
# File 'lib/multi_notifier/middlewares/mail.rb', line 21

def notificaiton(headers, text_body, html_body)
  mail headers do |format|
    format.text { text_body }
    format.html { html_body.present? ? html_body : text_body }
  end
end