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 @@
- <%= link_to 'Click here to unsubscribe from all Metamaps emails', unsubscribe_notifications_url(https: !!Rails.env.production?) %>
+ <%= link_to 'Click here to unsubscribe from all Metamaps emails', unsubscribe_notifications_url(protocol: Rails.env.production? ? :https : :http) %>
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) %>