Sha256: c1922f84dbd468eec78ebe029d7cf42403b711f4871aaa9eed1e3ff7f637115f

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 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

6 entries across 6 versions & 1 rubygems

Version Path
mail_auto_link_obfuscation-0.2.3 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.2 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.1 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.2.0 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.1.1 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb
mail_auto_link_obfuscation-0.1.0 lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb