does this work for protocol?

This commit is contained in:
Connor Turland 2016-12-13 09:43:47 -05:00
parent 69b67f8425
commit afd7293def
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
<div class="unsubscribe-link">
<%= 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) %>
</div>

View file

@ -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) %>