From 9d161c671da079086ae2053b5db2dc96d8b8e63e Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 12 Apr 2019 19:25:02 +0300 Subject: [PATCH] Remove unused method --- app/mailers/application_mailer.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 4f340a3f8..ed5786eea 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -3,14 +3,6 @@ class ApplicationMailer < ActionMailer::Base default from: 'noreply@internet.ee' layout 'mailer' - # 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 - logger.info "EMAIL SENDING WAS NOT ACTIVATED " \ - "BY MODEL OBJECT: id ##{model.try(:id)} deliver_emails returned false" - true - end - def format(email) local, host = email.split('@') host = SimpleIDN.to_ascii(host)