Use *_url instead of *_path to avoid a deprecation warning

This commit is contained in:
Godfrey Chan 2014-10-15 01:56:41 -07:00
parent f749961d97
commit 5d7aca3cc6
2 changed files with 2 additions and 3 deletions

View File

@ -70,7 +70,7 @@
<span class='footer-notice'>
<%=raw(t :'user_notifications.digest.unsubscribe',
site_link: html_site_link,
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_path(host: Discourse.base_url, key: @user.temporary_key, only_path: false))) %>
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url, key: @user.temporary_key))) %>
</span>
</td>
</tr>

View File

@ -33,7 +33,6 @@
<%=raw(t :'user_notifications.digest.unsubscribe',
site_link: site_link,
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_path(key: @user.temporary_key)))) %>
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_url(key: @user.temporary_key, only_path: true)))) %>
<%= raw(@markdown_linker.references) %>