<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -32,7 +32,6 @@ class Seeder
       record.send(&quot;#{k}=&quot;, v)
     end
     record.save!
-    puts &quot; - #{@model_class} #{condition_hash.inspect}&quot;
     record
   end
   
@@ -70,4 +69,16 @@ class ActiveRecord::Base
   def self.seed(*constraints, &amp;block)
     Seeder.plant(self, *constraints, &amp;block)
   end
+  
+  def self.seed_many(*constraints)
+    seeds = constraints.pop
+    seeds.each do |seed_data|
+      seed(*constraints) do |s|
+        seed_data.each_pair do |k,v|
+          s.send &quot;#{k}=&quot;, v
+        end
+      end
+    end
+  end
+  
 end
\ No newline at end of file</diff>
      <filename>lib/seeder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -43,6 +43,18 @@ describe Seeder do
     SeededModel.find_by_login(&quot;bob&quot;).first_name.should == &quot;Steve&quot;
   end
   
+  it &quot;should be able to create models from an array of seed attributes&quot; do
+    SeededModel.seed_many(:title, :login, [
+      {:login =&gt; &quot;bob&quot;, :title =&gt; &quot;Peon&quot;, :first_name =&gt; &quot;Steve&quot;},
+      {:login =&gt; &quot;frank&quot;, :title =&gt; &quot;Peasant&quot;, :first_name =&gt; &quot;Francis&quot;},
+      {:login =&gt; &quot;harry&quot;, :title =&gt; &quot;Noble&quot;, :first_name =&gt; &quot;Harry&quot;}
+    ])
+    
+    SeededModel.find_by_login(&quot;bob&quot;).first_name.should == &quot;Steve&quot;
+    SeededModel.find_by_login(&quot;frank&quot;).first_name.should == &quot;Francis&quot;
+    SeededModel.find_by_login(&quot;harry&quot;).first_name.should == &quot;Harry&quot;
+  end
+  
   #it &quot;should raise an error if constraints are not unique&quot; do
   #  SeededModel.create(:login =&gt; &quot;bob&quot;, :first_name =&gt; &quot;Bob&quot;, :title =&gt; &quot;Peon&quot;)
   #  SeededModel.create(:login =&gt; &quot;bob&quot;, :first_name =&gt; &quot;Robert&quot;, :title =&gt; &quot;Manager&quot;)</diff>
      <filename>spec/seed_fu_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>93e54062cec39aad5249c4dbcc35bcaa8efcf633</id>
    </parent>
  </parents>
  <author>
    <name>Zach Dennis</name>
    <email>zach.dennis@gmail.com</email>
  </author>
  <url>http://github.com/mbleigh/seed-fu/commit/9f7e8b27b7cb175911474a898ea282771ab2a5c3</url>
  <id>9f7e8b27b7cb175911474a898ea282771ab2a5c3</id>
  <committed-date>2008-07-16T13:34:27-07:00</committed-date>
  <authored-date>2008-07-16T13:34:27-07:00</authored-date>
  <message>added .seed_many method to allow you to seed several records through one call</message>
  <tree>f5d7f7eb5f1b8d34d4e318e85647125943f84530</tree>
  <committer>
    <name>Zach Dennis</name>
    <email>zach.dennis@gmail.com</email>
  </committer>
</commit>
