Skip to content

Commit

Permalink
Use mb_chars instead of chars method. Chars is deprecated in Rails Edge.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludo van den Boom committed Sep 24, 2008
1 parent 923eaf2 commit 4c68fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/to_slug.rb
Expand Up @@ -17,7 +17,7 @@ module ToSlug
def to_slug
# Perform transliteration to replace non-ascii characters with an ascii
# character
value = self.chars.normalize(:kd).gsub(/[^\x00-\x7F]/n, '')
value = self.mb_chars.normalize(:kd).gsub(/[^\x00-\x7F]/n, '')

# Remove single quotes from input
value.gsub!(/[']+/, '')
Expand Down

0 comments on commit 4c68fbb

Please sign in to comment.