Skip to content

Commit

Permalink
Merge pull request #1165 from internetee/remove-unused-method
Browse files Browse the repository at this point in the history
Remove unused method
  • Loading branch information
vohmar authored Apr 24, 2019
2 parents 095b0ca + 9d161c6 commit 29d7622
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ class ApplicationMailer < ActionMailer::Base
default from: '[email protected]'
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)
Expand Down

0 comments on commit 29d7622

Please sign in to comment.