From afd7293def323f8f3fd8df4010d8b6c025f471c2 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 13 Dec 2016 09:43:47 -0500 Subject: [PATCH] does this work for protocol? --- app/views/shared/_mailer_unsubscribe_link.html.erb | 2 +- app/views/shared/_mailer_unsubscribe_link.text.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_mailer_unsubscribe_link.html.erb b/app/views/shared/_mailer_unsubscribe_link.html.erb index 86d9408d..56730dd9 100644 --- a/app/views/shared/_mailer_unsubscribe_link.html.erb +++ b/app/views/shared/_mailer_unsubscribe_link.html.erb @@ -1,3 +1,3 @@ diff --git a/app/views/shared/_mailer_unsubscribe_link.text.erb b/app/views/shared/_mailer_unsubscribe_link.text.erb index e3acfcbd..ff851865 100644 --- a/app/views/shared/_mailer_unsubscribe_link.text.erb +++ b/app/views/shared/_mailer_unsubscribe_link.text.erb @@ -2,4 +2,4 @@ You can unsubscribe from all Metamaps emails by visiting the following link: -<%= unsubscribe_notifications_url(https: !!Rails.env.production?) %> +<%= unsubscribe_notifications_url(protocol: Rails.env.production? ? :https : :http) %>