lib/mailkick/mailer.rb in mailkick-0.1.3 vs lib/mailkick/mailer.rb in mailkick-0.1.4

- old
+ new

@@ -1,14 +1,8 @@ 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) + def mail(headers = {}, &block) + message = super Mailkick::Processor.new(message).process message end