Sha256: 9cd1994ff8250409717f7838b378a08b3b2bce3f2d60bbf7deba800c7f1e71ac
Contents?: true
Size: 565 Bytes
Versions: 36
Compression:
Stored size: 565 Bytes
Contents
module Dorsale module BillingMachine class InvoiceMailer < ::Dorsale::ApplicationMailer def send_invoice_to_customer(invoice, subject, body, sender = nil) return false if invoice.try(:customer).try(:email).blank? attachments["#{Invoice.t}_#{invoice.tracking_id}.pdf"] = invoice.pdf.render mail( :to => invoice.customer.email, :cc => sender.try(:email), :reply_to => sender.try(:email), :subject => subject, :body => body, ) end end end end
Version data entries
36 entries across 36 versions & 1 rubygems