Class: Mail::Notify::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/mail/notify/mailer.rb

Instance Method Summary collapse

Instance Method Details

#template_mail(template_id, headers) ⇒ Object



10
11
12
# File 'lib/mail/notify/mailer.rb', line 10

def template_mail(template_id, headers)
  mail(headers.merge(body: '', subject: '', template_id: template_id))
end

#view_mail(template_id, headers) ⇒ Object



6
7
8
# File 'lib/mail/notify/mailer.rb', line 6

def view_mail(template_id, headers)
  mail(headers.merge(template_id: template_id))
end