lib/ahoy_email/mailer.rb in ahoy_email-0.2.4 vs lib/ahoy_email/mailer.rb in ahoy_email-0.3.0

- old
+ new

@@ -19,9 +19,12 @@ def track(options = {}) self.ahoy_options = (ahoy_options || {}).merge(message: true).merge(options) end def mail_with_ahoy(headers = {}, &block) + # this mimics what original method does + return message if @_mail_was_called && headers.blank? && !block + message = mail_without_ahoy(headers, &block) AhoyEmail::Processor.new(message, self).process message end end