Sha256: 57b0a2ac4ab136313d23dff6bbe26254dac83369aa42d404235c3b77e05a8d22

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

module Feste
  module TemplateHelper
    # Return the absolute path to subscriptions#index with the proper
    # subscription token to identify the subscriber.
    #
    # @return [String]
    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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
feste-0.4.2 lib/feste/template_helper.rb
feste-0.4.1 lib/feste/template_helper.rb
feste-0.4.0 lib/feste/template_helper.rb
feste-0.3.0 lib/feste/template_helper.rb
feste-0.2.1 lib/feste/template_helper.rb