<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
+July 25 2008
+
+* Small change to allow friendly_id to work better with STI. (David Ramalho)
+
 July 14 2008
 
 * Improved slug generation for friendly id's with apostrophes. (alistairholt)</diff>
      <filename>CHANGES</filename>
    </modified>
    <modified>
      <diff>@@ -136,9 +136,9 @@ module Randomba
       def find_using_friendly_id(*args)
         case args.first
           when String
-            slugs = Slug.find_by_name_and_sluggable_type(args.first, self.to_s)
+            slugs = Slug.find_by_name_and_sluggable_type(args.first, self.base_class.to_s)
           when Array
-            slugs = Slug.find_all_by_name_and_sluggable_type(args.first, self.to_s)
+            slugs = Slug.find_all_by_name_and_sluggable_type(args.first, self.base_class.to_s)
           else
             return false
         end</diff>
      <filename>lib/friendly_id.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0114ba8e8a225981d26e00c2a600b1dd1c9e3a99</id>
    </parent>
  </parents>
  <author>
    <name>Norman Clarke</name>
    <email>norman@addthree.com</email>
  </author>
  <url>http://github.com/norman/friendly_id/commit/eb170ce467532473eafde4bb4125a9165481f6c0</url>
  <id>eb170ce467532473eafde4bb4125a9165481f6c0</id>
  <committed-date>2008-07-25T07:21:30-07:00</committed-date>
  <authored-date>2008-07-25T07:21:30-07:00</authored-date>
  <message>Added small change to allow friendly_id to work with STI. (David Ramalho)</message>
  <tree>f9782eaabe22f197b175eb9da0564b3faa09c7de</tree>
  <committer>
    <name>Norman Clarke</name>
    <email>norman@addthree.com</email>
  </committer>
</commit>
