From e46c8f74f279032644bcbace9681da0f572c1321 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 14 Mar 2022 10:23:28 +0000 Subject: [PATCH] Host env var used in environment config rather than manually constructing URL --- app/mailers/devise_notify_mailer.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/mailers/devise_notify_mailer.rb b/app/mailers/devise_notify_mailer.rb index 61d8f4b2d..3d44cbec2 100644 --- a/app/mailers/devise_notify_mailer.rb +++ b/app/mailers/devise_notify_mailer.rb @@ -5,10 +5,6 @@ class DeviseNotifyMailer < Devise::Mailer @notify_client ||= ::Notifications::Client.new(ENV["GOVUK_NOTIFY_API_KEY"]) end - def host - @host ||= ENV["APP_HOST"] - end - def send_email(email, template_id, personalisation) notify_client.send_email( email_address: email,