<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,8 @@
+== 2.0.3 2009-02-11
+
+* 1 minor enhancment:
+  * Fixed to_param returning an empty string for non-slugged models with a null friendly_id.
+
 == 2.0.2 2009-02-09
 
 * 2 major enhancements:</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@
 
 Gem::Specification.new do |s|
   s.name = %q{friendly_id}
-  s.version = &quot;2.0.2&quot;
+  s.version = &quot;2.0.3&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Norman Clarke&quot;, &quot;Adrian Mugnolo&quot;, &quot;Emilio Tagua&quot;]
-  s.date = %q{2009-02-09}
+  s.date = %q{2009-02-11}
   s.description = %q{A comprehensive slugging and pretty-URL plugin for ActiveRecord.}
   s.email = [&quot;norman@randomba.org&quot;, &quot;adrian@randomba.org&quot;, &quot;miloops@gmail.com&quot;]
   s.extra_rdoc_files = [&quot;History.txt&quot;, &quot;Manifest.txt&quot;, &quot;README.rdoc&quot;]</diff>
      <filename>friendly_id.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@ module FriendlyId::NonSluggableInstanceMethods
 
   # Returns the friendly id, or if none is available, the numeric id.
   def to_param
-    friendly_id.to_s || id.to_s
+    (friendly_id || id).to_s
   end
 
   private</diff>
      <filename>lib/friendly_id/non_sluggable_instance_methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module FriendlyId #:nodoc:
   module Version #:nodoc:
     MAJOR = 2
     MINOR = 0
-    TINY = 2
+    TINY = 3
     STRING = [MAJOR, MINOR, TINY].join('.')
   end
 end
\ No newline at end of file</diff>
      <filename>lib/friendly_id/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -55,6 +55,12 @@ class NonSluggedTest &lt; Test::Unit::TestCase
       assert_equal String, @user.to_param.class
     end
 
+    should &quot;return its id if the friendly_id is null&quot; do
+      @user.login = nil
+      assert_equal @user.id.to_s, @user.to_param
+    end
+
+
     context &quot;when using an array as the find argument&quot; do
 
       setup do</diff>
      <filename>test/non_slugged_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8d462856b299fe71912887d57a5e84ad851dee98</id>
    </parent>
  </parents>
  <author>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </author>
  <url>http://github.com/norman/friendly_id/commit/50a75b9f9eec615c2ad6517f4d928d0ba98b5fcf</url>
  <id>50a75b9f9eec615c2ad6517f4d928d0ba98b5fcf</id>
  <committed-date>2009-02-10T18:15:51-08:00</committed-date>
  <authored-date>2009-02-10T18:12:38-08:00</authored-date>
  <message>Fixed to_param for non-slugged models when friendly_id is null. Resolves #25.</message>
  <tree>6b73a9bfeca5a6dc29af4668b79c20ed2694149c</tree>
  <committer>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </committer>
</commit>
