mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Remove legacy test emails
Removes `whitelist_emails_for_staging` setting. Closes #201
This commit is contained in:
parent
aad39fd2b7
commit
1c2407a6e9
6 changed files with 0 additions and 39 deletions
|
@ -3,19 +3,6 @@ class ApplicationMailer < ActionMailer::Base
|
|||
default from: 'noreply@internet.ee'
|
||||
layout 'mailer'
|
||||
|
||||
def whitelist_blocked?(emails)
|
||||
return false if Rails.env.production? || Rails.env.test?
|
||||
|
||||
emails = [emails] unless emails.is_a?(Array)
|
||||
emails = emails.flatten
|
||||
emails.each do |email|
|
||||
next if TEST_EMAILS.include?(email)
|
||||
logger.info "EMAIL SENDING WAS BLOCKED BY WHITELIST: #{email}"
|
||||
return true
|
||||
end
|
||||
false
|
||||
end
|
||||
|
||||
# turn on delivery on specific (epp) request only, thus rake tasks does not deliver anything
|
||||
def delivery_off?(model, deliver_emails = false)
|
||||
return false if deliver_emails == true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue