Sha256: 254dfef01117434236b634d36c5236d14d682f74f91856da30810d23112253c7

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

module MailSafe
  module ActionMailer
    def self.included(base)
      base.class_eval do
        alias_method_chain :deliver!, :mail_safe
      end
    end

    def deliver_with_mail_safe!(mail = @mail)
      MailSafe::AddressReplacer.replace_external_addresses(mail) if mail
      deliver_without_mail_safe!(mail)
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
myronmarston-mail_safe-0.1.0 lib/mail_safe/action_mailer.rb
mail_safe-0.2.0 lib/mail_safe/action_mailer.rb
mail_safe-0.1.0 lib/mail_safe/action_mailer.rb