Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Commit

Permalink
Updated usage of ActiveSupport::Multibyte because of Rails most recen…
Browse files Browse the repository at this point in the history
…t changes
  • Loading branch information
goncalossilva committed Nov 1, 2009
1 parent 589de2f commit 59f7cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/permalink_fu.rb
Expand Up @@ -8,7 +8,7 @@
module PermalinkFu

def self.escape(str)
s = ActiveSupport::Multibyte::Handlers::UTF8Handler.normalize(str.to_s, :kd)
s = str.mb_chars.downcase.strip.normalize(:kd)
s.gsub!(/[^\w -]+/n, '') # strip unwanted characters
s.strip! # ohh la la
s.downcase!
Expand Down

0 comments on commit 59f7cdc

Please sign in to comment.