Registrant change confirmation logic

This commit is contained in:
Priit Tark 2015-05-13 10:00:52 +03:00
parent 6476c7c805
commit 840c56db84
15 changed files with 292 additions and 17 deletions

View file

@ -1,6 +1,6 @@
class InvoiceMailer < ApplicationMailer
def invoice_email(invoice, pdf)
return if Rails.env.production? ? false : TEST_EMAILS.include?(invoice.billing_email)
return if Rails.env.production? ? false : !TEST_EMAILS.include?(invoice.billing_email)
@invoice = invoice
attachments[invoice.pdf_name] = pdf