Class: BMC::GenericMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/bmc/generic_mailer.rb

Instance Method Summary collapse

Instance Method Details

#generic_email(data) ⇒ Object



2
3
4
5
6
7
8
# File 'app/mailers/bmc/generic_mailer.rb', line 2

def generic_email(data)
  data.delete(:attachments).to_h.each do |filename, content|
    attachments[filename] = content
  end

  mail(data)
end