public
Rubygem
Description: FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models.
Homepage: http://friendly-id.rubyforge.org
Clone URL: git://github.com/norman/friendly_id.git
Added 'straight' apostrophe, opening 'curly' apostrophe and 'curly' quotes 
stripping to Slug::normalize
alistairholt (author)
Wed Jul 02 03:10:32 -0700 2008
commit  a2a6a784331cc733318d69bdd5c486fe08640c16
tree    6caae425f4ed58458203227c344579890bd4c954
parent  38f23b8d6507cdd5892fece9787953a5093868d6
...
40
41
42
43
 
44
45
46
...
40
41
42
 
43
44
45
46
0
@@ -40,7 +40,7 @@ class Slug < ActiveRecord::Base
0
   #
0
   def self.normalize(slug_text)
0
     s = slug_text.clone
0
-    s.gsub!(/[\?",.;:]/, '')
0
+    s.gsub!(/[\?’'“”",.;:]/, '')
0
     s.gsub!(/\W+/, ' ')
0
     s.strip!
0
     s.downcase!

Comments