Sha256: a79a8dd990c076d58561a283d11cf862006bde1d73c1869f89da5c3422615047

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

module Mailkick
  module Mailer
    def self.included(base)
      base.class_eval do
        alias_method_chain :mail, :mailkick
      end
    end

    def mail_with_mailkick(headers = {}, &block)
      message = mail_without_mailkick(headers, &block)

      Mailkick::Processor.new(message).process

      message
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mailkick-0.1.3 lib/mailkick/mailer.rb
mailkick-0.1.2 lib/mailkick/mailer.rb