Module: Feste::TemplateHelper

Defined in:
lib/feste/template_helper.rb

Instance Method Summary collapse

Instance Method Details

#subscription_urlString

Return the absolute path to subscriptions#index with the proper subscription token to identify the subscriber.

Returns:

  • (String)


7
8
9
10
11
12
13
14
# File 'lib/feste/template_helper.rb', line 7

def subscription_url
  host = Feste.options[:host] ||
    ActionMailer::Base.default_url_options[:host]
  Feste::Engine.routes.url_helpers.subscriptions_url(
    token: @_subscription_token,
    host: host
  )
end