mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Registrant change confirmation logic
This commit is contained in:
parent
6476c7c805
commit
840c56db84
15 changed files with 292 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue