Sha256: f9b1315a3cf7cb0d1dd086f3bde53cb918bb2b7f67d13fef9d5ac40613bc4538

Contents?: true

Size: 421 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

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