<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/mailers/views/delayed_mail_controller/first.text.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -17,9 +17,9 @@ module Merb
               find(:all, *args)
             end
             
-            def queue(from, to, subject, body)
+            def queue(from, to, subject, text, html)
               [to].flatten.each do |recepient|
-                create(:to =&gt; recepient, :from =&gt; from, :subject =&gt; subject, :body =&gt; body)
+                create(:to =&gt; recepient, :from =&gt; from, :subject =&gt; subject, :text =&gt; text, :html =&gt; html)
               end
             end
           end # ClassMethods</diff>
      <filename>lib/merb_mail_queue/adapters/activerecord/map.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,8 +25,12 @@ module Merb
         body             = _dispatch method
         if !@mail.html.blank? || !@mail.text.blank?
           body = @mail.html || @mail.text
-          Merb::MailQueue.mail_queue_job_model_class.queue(@mail.from, @mail.to.first, @mail.subject.first, body)
-          Merb.logger.info &quot;Email queued: to #{@mail.to} about #{@mail.subject}&quot;
+          
+          Merb::MailQueue.mail_queue_job_model_class.queue(
+            mail_params[:from], mail_params[:to], mail_params[:subject], @mail.text, @mail.html
+          )
+          
+          Merb.logger.info &quot;Email queued: \n\tfrom #{mail_params[:from]} \n\tto #{mail_params[:to]} \n\tabout #{mail_params[:subject]}.&quot;
         else
           Merb.logger.info &quot;#{method} was not sent because nothing was rendered for it&quot;
         end        </diff>
      <filename>lib/merb_mail_queue/mail_queue_mixin.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,8 @@ class MailQueueJobMigration &lt; ActiveRecord::Migration
       t.string :to,         :string
       t.string :from,       :string
       t.string :subject,    :string
-      t.text   :body
+      t.text   :text
+      t.text   :html
       
       t.timestamps
     end
@@ -29,14 +30,14 @@ def create_mail_queue_jobs
     :to      =&gt; &quot;mail@queue.plugins.merbivore.com&quot;,
     :from    =&gt; &quot;activerecord@queue.plugins.merbivore.com&quot;,
     :subject =&gt; &quot;Merb Mail queue plugin&quot;,
-    :body    =&gt; &quot;This plugin makes email queueing simpler than before!&quot;
+    :text    =&gt; &quot;This plugin makes email queueing simpler than before!&quot;
   )
   
   second = MailQueueJob.create!(
     :to      =&gt; &quot;mail@queue.plugins.merbivore.com&quot;,
     :from    =&gt; &quot;activerecord@queue.plugins.merbivore.com&quot;,
     :subject =&gt; &quot;Merb Mail queue plugin, take 2&quot;,
-    :body    =&gt; &quot;This plugin work with ActiveRecord&quot;
+    :html    =&gt; &quot;This plugin for &lt;a href='http://merbivore.com'&gt;Merb&lt;/a&gt; work with ActiveRecord&quot;
   )
   
   [first, second]</diff>
      <filename>spec/active_record_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@ end
 
 class DelayedMailController &lt; Merb::MailController
   def first
-    render_mail
+    render_mail :text =&gt; :first
   end
   
   def second
@@ -54,11 +54,11 @@ describe &quot;A Merb Mail controller&quot; do
   
   it &quot;should render files in its directory by default&quot; do
     queue :first
-    MailQueueJob.last.body.should == &quot;First message.&quot;
+    MailQueueJob.last.text.should == &quot;First message.&quot;
   end
   
   it &quot;should render files in its directory without a mimetype extension by default&quot; do
     call_action :does_queueing_of_second_email
-    MailQueueJob.last.body.should == &quot;Second message.&quot;
+    MailQueueJob.last.html.should == &quot;Second message.&quot;
   end
 end
\ No newline at end of file</diff>
      <filename>spec/mail_queue_mixin_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -38,7 +38,7 @@ describe Merb::MailQueue::Processor do
     email.to.first.should == jobs.first.to
     email.from.first.should == jobs.first.from
     
-    email.body.first.should == jobs.first.body
+    email.text.should == jobs.first.text
   end  
   
   it &quot;destroys processed jobs&quot; do</diff>
      <filename>spec/mail_queue_processor_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>spec/mailers/views/delayed_mail_controller/first.html.erb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>2c54b0bc28b46faacd7f8e30553701724c8572f0</id>
    </parent>
  </parents>
  <author>
    <name>Michael S. Klishin</name>
    <email>michael@novemberain.com</email>
  </author>
  <url>http://github.com/lachie/merb_mail_queue/commit/25df879a5b45615065142ee89bbef06491d46a42</url>
  <id>25df879a5b45615065142ee89bbef06491d46a42</id>
  <committed-date>2008-06-21T11:23:49-07:00</committed-date>
  <authored-date>2008-06-21T11:23:49-07:00</authored-date>
  <message>Use text and html attributes instead of body: let body be constructed by MailFactory.</message>
  <tree>62c1f01069caef3ae66f6164587d3328fb66ed3d</tree>
  <committer>
    <name>Michael S. Klishin</name>
    <email>michael@novemberain.com</email>
  </committer>
</commit>
