Browse Source

Host env var used in environment config rather than manually constructing URL (#381)

pull/384/head
baarkerlounger 3 years ago committed by GitHub
parent
commit
3b477f0a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/mailers/devise_notify_mailer.rb

4
app/mailers/devise_notify_mailer.rb

@ -5,10 +5,6 @@ class DeviseNotifyMailer < Devise::Mailer
@notify_client ||= ::Notifications::Client.new(ENV["GOVUK_NOTIFY_API_KEY"]) @notify_client ||= ::Notifications::Client.new(ENV["GOVUK_NOTIFY_API_KEY"])
end end
def host
@host ||= ENV["APP_HOST"]
end
def send_email(email, template_id, personalisation) def send_email(email, template_id, personalisation)
notify_client.send_email( notify_client.send_email(
email_address: email, email_address: email,

Loading…
Cancel
Save