Sha256: b74ead7bb42f486c5c40e6b44bee2c8f5bc3834c6a3d2e4cd5f85273642c50a6

Contents?: true

Size: 376 Bytes

Versions: 3

Compression:

Stored size: 376 Bytes

Contents

module Mailkick
  module UrlHelper

    def mailkick_unsubscribe_url(options = {})
      Mailkick::Engine.routes.url_helpers.url_for(
        Rails.application.config.action_mailer.default_url_options.merge(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.4 app/helpers/mailkick/url_helper.rb
mailkick-0.0.3 app/helpers/mailkick/url_helper.rb
mailkick-0.0.2 app/helpers/mailkick/url_helper.rb