<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,3 @@
 .DS_STORE
 test/*.sqlite3
+test/*.log</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -66,28 +66,30 @@ You can even call methods through associations, if needed:
 
 - :template. This allows you to be able to specify conditions for use of different columns
      #in your model
+      # Exporting
       acts_as_csv_exportable :fancy_naming, [{:first =&gt; &quot;first_name&quot;}, {:last =&gt; &quot;last_name&quot;}, {:email =&gt; &quot;email_address&quot;}, {:address =&gt; &quot;mailing_address&quot;}]
       acts_as_csv_exportable :detailed, [:first_name, :last_name, :email_address, :mailing_address, :formatted_date]
       acts_as_csv_exportable :default, [:id, :first_name, :last_name]
-
-	  acts_as_csv_importable :default, [:id, :first_name, :last_name]
-	  acts_as_csv_importable :new_projects, [:name, :details, :owner_username]
-	
-	  -For customized fields-
-	  You can define a method on the model and use that in your template or columns array
-		def formatted_date
-	    	self.date.strftime(&quot;%Y/%M/%D&quot;)
-	  	end
-	  	acts_as_csv_importable :formatted_template =&gt; [:formatted_date =&gt; 'formatted_date' ]
 	
-	  -OR-
-	  You can use a proc to evaluate a field on the fly for more customization
-	  	acts_as_csv_importable :fancy_formatted_proc, [:formatted_date =&gt; Proc.new {|x| x.date.strftime(&quot;%Y/%M/%D&quot;)} ]
-	  
-		  
-	  def owner_username=(username)
-	    self.owner = Users.find_by_username(username)
-	  end
+      # For customized fields
+      # You can define a method on the model and use that in your template or columns array
+      def formatted_date
+        self.date.strftime(&quot;%Y/%M/%D&quot;)
+      end
+      acts_as_csv_exportable :formatted_template =&gt; [:formatted_date =&gt; 'formatted_date' ]
+
+      # OR
+      # You can use a proc to evaluate a field on the fly for more customization
+      acts_as_csv_exportable :fancy_formatted_proc, [:formatted_date =&gt; Proc.new {|x| x.date.strftime(&quot;%Y/%M/%D&quot;)} ]
+
+      # Importing 	    
+      acts_as_csv_importable :default, [:id, :first_name, :last_name]
+      acts_as_csv_importable :new_projects, [:name, :details, :owner_username]
+      
+      def owner_username=(username)
+        self.owner = Users.find_by_username(username)
+      end
+
 	  
 - :columns. This allows you to pass an array of columns into the to_csv method. This is useful if you are dynamically generating which columns you want to export.
    @proposal.to_csv(:columns =&gt; [&quot;title&quot;, &quot;amount&quot;, &quot;proposer.first_name&quot;]). You can also pass this a hash of the form expected in acts_as_csv_exportable.</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -12,32 +12,31 @@ class ActsAsCSVExportableTest &lt; Test::Unit::TestCase
     @project.client = @client
   end
   
-    def test_project_default_template_is_set_as_defined_in_model
-      assert_equal Project.get_export_template(:default), [{:project_name =&gt; :name}, {:project_description =&gt; :description}, {:client_name =&gt; 'client.full_name'}, {:deadline =&gt; 'formatted_deadline'}]
-    end
-  
-    def test_project_simple_template_is_set_as_defined_in_model
-      assert_equal Project.get_export_template(:simple), [{:project_name =&gt; :name}]
-    end
-  
-    def test_to_csv_should_render_correct_results
-      assert_equal &quot;Project Name,Project Description,Client Name,Deadline\nMy Project,Described,Joe Schmoe,#{@time.strftime('%m/%d/%Y')}\n&quot;, @client.projects.to_csv    
-    end
-    
-    def test_to_csv_using_proc_should_render_correct
-      assert_equal &quot;Project Name,Deadline\nMy Project,#{@time.strftime('%m/%d/%Y')}\n&quot;, @client.projects.to_csv(:template =&gt; :proc)
-    end
-  
-    def test_to_csv_with_template_specified_should_render_correct
-      assert_equal &quot;Project Name\nMy Project\n&quot;, @client.projects.to_csv(:template =&gt; :simple)
-    end
-  
-    def test_to_csv_works_when_columns_specified
-      assert_equal &quot;Project Description,Project Name\n#{@project.description},#{@project.name}\n&quot;, @client.projects.to_csv(:columns =&gt; [{:project_description =&gt; :description}, {:project_name =&gt; :name}])
-    end
+  def test_project_default_template_is_set_as_defined_in_model
+    assert_equal Project.get_export_template(:default), [{:project_name =&gt; :name}, {:project_description =&gt; :description}, {:client_name =&gt; 'client.full_name'}, {:deadline =&gt; 'formatted_deadline'}]
+  end
+
+  def test_project_simple_template_is_set_as_defined_in_model
+    assert_equal Project.get_export_template(:simple), [{:project_name =&gt; :name}]
+  end
+
+  def test_to_csv_should_render_correct_results
+    assert_equal &quot;Project Name,Project Description,Client Name,Deadline\nMy Project,Described,Joe Schmoe,#{@time.strftime('%m/%d/%Y')}\n&quot;, @client.projects.to_csv    
+  end
   
-    def test_to_csv_works_with_chained_methods_when_columns_specified                                                                                                                                  
-      assert_equal &quot;Project Description,Project Name,Client\n#{@project.description},#{@project.name},#{@project.client.full_name}\n&quot;,  @client.projects.to_csv(:columns =&gt; [{:project_description =&gt; :description}, {:project_name =&gt; :name}, {:client =&gt; &quot;client.full_name&quot;}])
-    end
+  def test_to_csv_using_proc_should_render_correct
+    assert_equal &quot;Project Name,Deadline\nMy Project,#{@time.strftime('%m/%d/%Y')}\n&quot;, @client.projects.to_csv(:template =&gt; :proc)
+  end
+
+  def test_to_csv_with_template_specified_should_render_correct
+    assert_equal &quot;Project Name\nMy Project\n&quot;, @client.projects.to_csv(:template =&gt; :simple)
+  end
+
+  def test_to_csv_works_when_columns_specified
+    assert_equal &quot;Project Description,Project Name\n#{@project.description},#{@project.name}\n&quot;, @client.projects.to_csv(:columns =&gt; [{:project_description =&gt; :description}, {:project_name =&gt; :name}])
+  end
 
+  def test_to_csv_works_with_chained_methods_when_columns_specified                                                                                                                                  
+    assert_equal &quot;Project Description,Project Name,Client\n#{@project.description},#{@project.name},#{@project.client.full_name}\n&quot;,  @client.projects.to_csv(:columns =&gt; [{:project_description =&gt; :description}, {:project_name =&gt; :name}, {:client =&gt; &quot;client.full_name&quot;}])
+  end
 end
\ No newline at end of file</diff>
      <filename>test/acts_as_csv_exportable_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1b63677f45ba1c3afb1ebfb7823d7e88c18f5e16</id>
    </parent>
  </parents>
  <author>
    <name>Peter Leonhardt</name>
    <email>peterleonhardt@gmail.com</email>
  </author>
  <url>http://github.com/pjleonhardt/ActsAsCSVable/commit/800420b9f79119b1abdb39acf34bbd4e6f846ef1</url>
  <id>800420b9f79119b1abdb39acf34bbd4e6f846ef1</id>
  <committed-date>2009-07-07T08:37:09-07:00</committed-date>
  <authored-date>2009-07-07T08:37:09-07:00</authored-date>
  <message>Fixing some formatting with the README and tests.</message>
  <tree>f0de47c3231a7888a5cf44747493deedb6a2148a</tree>
  <committer>
    <name>Peter Leonhardt</name>
    <email>peterleonhardt@gmail.com</email>
  </committer>
</commit>
