Module: Feste::TemplateHelper
- Defined in:
- lib/feste/template_helper.rb
Instance Method Summary collapse
-
#subscription_url ⇒ String
Return the absolute path to subscriptions#index with the proper subscription token to identify the subscriber.
Instance Method Details
#subscription_url ⇒ String
Return the absolute path to subscriptions#index with the proper subscription token to identify the subscriber.
7 8 9 10 11 12 13 14 |
# File 'lib/feste/template_helper.rb', line 7 def subscription_url host = Feste.[:host] || ActionMailer::Base.[:host] Feste::Engine.routes.url_helpers.subscriptions_url( token: @_subscription_token, host: host ) end |