Sha256: 2a0d7b2ce0ce0d48c028a2076966e3040310f733cbd65868d9973daa74b9dbdc
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
module Mailkick module UrlHelper def mailkick_unsubscribe_url(email: nil, list: nil, **options) email ||= controller.message.to.first Mailkick::Engine.routes.url_helpers.url_for( (ActionMailer::Base.default_url_options || {}).merge(options).merge( controller: "mailkick/subscriptions", action: "unsubscribe", id: Mailkick.generate_token(email, list: list) ) ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mailkick-0.3.0 | app/helpers/mailkick/url_helper.rb |