Skip to content

Commit

Permalink
Allow accents in Wiki slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Mar 21, 2011
1 parent 9d7b86a commit 96c2596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/wiki_page.rb
Expand Up @@ -33,7 +33,7 @@ class WikiPage < Content
has_friendly_id :title, :use_slug => true, :reserved_words => RESERVED_WORDS

def normalize_friendly_id(string)
string.to_ascii.word_chars.clean.truncate_bytes(150).with_separators.to_s
string.word_chars.clean.truncate_bytes(150).with_separators.to_s
end

### Sphinx ####
Expand Down

0 comments on commit 96c2596

Please sign in to comment.