From 3b477f0a3e95385ce45772400fa4193f60db3457 Mon Sep 17 00:00:00 2001 From: baarkerlounger <5101747+baarkerlounger@users.noreply.github.com> Date: Mon, 14 Mar 2022 10:57:31 +0000 Subject: [PATCH] Host env var used in environment config rather than manually constructing URL (#381) --- 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,