Sha256: 01bc076ab64ddbff8240727269f55fbc372eda5219eef981dfe1aaef76b0a880

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

module Mailkick
  module UrlHelper

    def mailkick_unsubscribe_url
      Mailkick::Engine.routes.url_helpers.url_for(
        Rails.application.config.action_mailer.default_url_options.merge(
          controller: "mailkick/subscriptions",
          action: "unsubscribe",
          id: "{{MAILKICK_TOKEN}}"
        )
      )
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mailkick-0.0.6 app/helpers/mailkick/url_helper.rb
mailkick-0.0.5 app/helpers/mailkick/url_helper.rb
mailkick-0.0.1 app/helpers/mailkick/url_helper.rb