Sha256: be5ebc50eb93c61b58ace04b890b77e99600d0138fb5d4bb294d27ed7d9768ce

Contents?: true

Size: 422 Bytes

Versions: 8

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

module MailAutoLinkObfuscation
  module Automatic
    def mail(*args, &block)
      super.tap do |email|
        email.extend ObfuscateAutoLinksOnDelivery
        email.mail_auto_link_obfuscation_options = mail_auto_link_obfuscation_options.try(:dup)
      end
    end

    def mail_auto_link_obfuscation_options
      ::Rails.application.config.mail_auto_link_obfuscation
    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/automatic.rb
mail_auto_link_obfuscation-0.3.0 lib/mail_auto_link_obfuscation/automatic.rb
mail_auto_link_obfuscation-0.2.9 lib/mail_auto_link_obfuscation/automatic.rb
mail_auto_link_obfuscation-0.2.8 lib/mail_auto_link_obfuscation/automatic.rb
mail_auto_link_obfuscation-0.2.7 lib/mail_auto_link_obfuscation/automatic.rb
mail_auto_link_obfuscation-0.2.6 lib/mail_auto_link_obfuscation/automatic.rb
mail_auto_link_obfuscation-0.2.5 lib/mail_auto_link_obfuscation/automatic.rb
mail_auto_link_obfuscation-0.2.4 lib/mail_auto_link_obfuscation/automatic.rb