class MultiNotifier::Middlewares::Mail::Mailer
Public Instance Methods
notificaiton(headers, text_body, html_body)
click to toggle source
# 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