Sha256: d7a4cc31040b3bfdf4f83fad3fb8ef64ecf85fc36cb0891f0dbf7e1163113376

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

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

8 entries across 8 versions & 1 rubygems

Version Path
mailkick-0.1.1 lib/mailkick/mailer.rb
mailkick-0.1.0 lib/mailkick/mailer.rb
mailkick-0.0.6 lib/mailkick/mailer.rb
mailkick-0.0.5 lib/mailkick/mailer.rb
mailkick-0.0.4 lib/mailkick/mailer.rb
mailkick-0.0.3 lib/mailkick/mailer.rb
mailkick-0.0.2 lib/mailkick/mailer.rb
mailkick-0.0.1 lib/mailkick/mailer.rb