<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Gem::Specification.new do |s|
   s.name     = &quot;from_param&quot;
-  s.version  = &quot;1.0.2&quot;
-  s.date     = &quot;2008-10-18&quot;
+  s.version  = &quot;1.0.3&quot;
+  s.date     = &quot;2008-10-21&quot;
   s.summary  = &quot;Better convention for finding records based on parameters&quot;
   s.homepage = &quot;http://github.com/mbleigh/from_param/tree/master&quot;
   s.description = &quot;This plugin is an addition to  ActiveRecord::Base that establishes a better </diff>
      <filename>from_param.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -53,8 +53,9 @@ class ActiveRecord::Base
       base_value = send &quot;#{param_column}&quot;
       send &quot;#{param_column}=&quot;, &quot;#{base_value}-#{i}&quot;
       while(self.class.param_taken?(self))
-        base_value = send &quot;#{param_column}&quot;
-        send &quot;#{param_column}=&quot;, base_value.chop + (i+=1).to_s
+    #    base_value = send &quot;#{param_column}&quot;
+    #    send &quot;#{param_column}=&quot;, base_value.chop + (i+=1).to_s
+    send &quot;#{param_column}=&quot;, &quot;#{base_value}-#{i+=1}&quot;
       end
     end
   end</diff>
      <filename>lib/from_param.rb</filename>
    </modified>
    <modified>
      <diff>@@ -60,6 +60,7 @@ describe ActiveRecord::Base, &quot;with from_param&quot; do
   end
   
   it &quot;should serialize the name as necessary to avoid collisions&quot; do
+    ParameteredModel.destroy_all
     @paramed.name = &quot;Dennis&quot;
     @paramed.save
     @paramed2 = ParameteredModel.new
@@ -74,4 +75,44 @@ describe ActiveRecord::Base, &quot;with from_param&quot; do
     @paramed4.param.should == &quot;dennis-4&quot;
   end
   
+  it &quot;should serialize the name as necessary to avoid collisions&quot; do
+    ParameteredModel.destroy_all
+    @paramed.name = &quot;Dennis&quot;
+    @paramed.save
+    @paramed2 = ParameteredModel.new
+    @paramed2.name = &quot;Dennis&quot;
+    @paramed2.save
+    @paramed3 = ParameteredModel.new
+    @paramed3.name = &quot;Dennis&quot;
+    @paramed3.save
+    @paramed4 = ParameteredModel.new
+    @paramed4.name = &quot;Dennis&quot;
+    @paramed4.save
+    @paramed5 = ParameteredModel.new
+    @paramed5.name = &quot;Dennis&quot;
+    @paramed5.save
+    @paramed6 = ParameteredModel.new
+    @paramed6.name = &quot;Dennis&quot;
+    @paramed6.save
+    @paramed7 = ParameteredModel.new
+    @paramed7.name = &quot;Dennis&quot;
+    @paramed7.save
+    @paramed8 = ParameteredModel.new
+    @paramed8.name = &quot;Dennis&quot;
+    @paramed8.save
+    @paramed9 = ParameteredModel.new
+    @paramed9.name = &quot;Dennis&quot;
+    @paramed9.save
+    @paramed10 = ParameteredModel.new
+    @paramed10.name = &quot;Dennis&quot;
+    @paramed10.save
+    @paramed11 = ParameteredModel.new
+    @paramed11.name = &quot;Dennis&quot;
+    @paramed11.save
+    @paramed12 = ParameteredModel.new
+    @paramed12.name = &quot;Dennis&quot;
+    @paramed12.save
+    @paramed12.param.should == &quot;dennis-12&quot;
+  end
+  
 end
\ No newline at end of file</diff>
      <filename>spec/from_param_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>187a65224fc102626cdb86b1e0e3441951e15e2d</id>
    </parent>
  </parents>
  <author>
    <name>Mike Gunderloy</name>
    <email>MikeG1@larkfarm.com</email>
  </author>
  <url>http://github.com/ffmike/from_param/commit/1032d0ad47c6bc4ee499d22f2539a3d5ad15d28b</url>
  <id>1032d0ad47c6bc4ee499d22f2539a3d5ad15d28b</id>
  <committed-date>2008-10-21T05:36:33-07:00</committed-date>
  <authored-date>2008-10-21T05:36:33-07:00</authored-date>
  <message>Fix bug in serialization code used in case of parameter collision.</message>
  <tree>1eaed96ca8b5091cd77e18611217ca6e6a05585f</tree>
  <committer>
    <name>Mike Gunderloy</name>
    <email>MikeG1@larkfarm.com</email>
  </committer>
</commit>
