Skip to content

Commit

Permalink
Made init_finder_slug's slug lookup use base class name rather than c…
Browse files Browse the repository at this point in the history
…lass name

and bumped gem version.
  • Loading branch information
Norman Clarke committed Feb 7, 2009
1 parent 391186a commit bfe109c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/friendly_id/sluggable_instance_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def finder_slug=(finder_slug)
def init_finder_slug
return false if !@finder_slug_name
name, sequence = Slug.parse(@finder_slug_name)
slug = Slug.find(:first, :conditions => {:sluggable_id => id, :name => name, :sequence => sequence, :sluggable_type => self.class.name })
slug = Slug.find(:first, :conditions => {:sluggable_id => id, :name => name, :sequence => sequence, :sluggable_type => self.class.base_class.name })
finder_slug = slug
end

Expand Down
2 changes: 1 addition & 1 deletion lib/friendly_id/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module FriendlyId #:nodoc:
module Version #:nodoc:
MAJOR = 2
MINOR = 0
TINY = 1
TINY = 2
STRING = [MAJOR, MINOR, TINY].join('.')
end
end

0 comments on commit bfe109c

Please sign in to comment.