Sha256: e77bff234056b97e25cfd534e60e14bb4684d9ced512a512e1942a716e4e9833

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

module Mailkick
  module UrlHelper
    def mailkick_unsubscribe_url
      Mailkick::Engine.routes.url_helpers.url_for(
        (ActionMailer::Base.default_url_options || {}).merge(
          controller: "mailkick/subscriptions",
          action: "unsubscribe",
          id: "{{MAILKICK_TOKEN}}"
        )
      )
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mailkick-0.2.1 app/helpers/mailkick/url_helper.rb
mailkick-0.2.0 app/helpers/mailkick/url_helper.rb
mailkick-0.1.6 app/helpers/mailkick/url_helper.rb
mailkick-0.1.5 app/helpers/mailkick/url_helper.rb
mailkick-0.1.4 app/helpers/mailkick/url_helper.rb
mailkick-0.1.3 app/helpers/mailkick/url_helper.rb
mailkick-0.1.2 app/helpers/mailkick/url_helper.rb