Sha256: 4551c80a0bd6ab3a8053050164c9700d3d8aa8cff923d533fa51ebf34198a218

Contents?: true

Size: 404 Bytes

Versions: 8

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

module MailAutoLinkObfuscation
  module ObfuscateAutoLinksOnDelivery
    attr_accessor :mail_auto_link_obfuscation_options

    def deliver
      obfuscate_links
      super
    end

    def deliver!
      obfuscate_links
      super
    end

    private

    def obfuscate_links
      AutoLinkObfuscator.new(self, mail_auto_link_obfuscation_options).run
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mail_auto_link_obfuscation-0.3.1 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.3.0 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.9 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.8 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.7 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.6 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.5 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.4 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb