Class: Dorsale::GenericMailer

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

Instance Method Summary collapse

Instance Method Details

#generic_email(data) ⇒ Object



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

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

  mail(data)
end