Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed syntax error [#1894 state:committed]

  • Loading branch information...
commit 30560593e7213f2c8855bf5ec722ddc8cd1335a2 1 parent 3c006d4
David Heinemeier Hansson dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/inflector.rb
2  activesupport/lib/active_support/inflector.rb
View
@@ -277,7 +277,7 @@ def transliterate(string)
# The iconv transliteration code doesn't function correctly
# on some platforms, but it's very fast where it does function.
- elsif "foo" != (Inflector.transliterate("föö") rescue nil)
+ if "foo" != (Inflector.transliterate("föö") rescue nil)
undef_method :transliterate
def transliterate(string)
string.mb_chars.normalize(:kd). # Decompose accented characters
Please sign in to comment.
Something went wrong with that request. Please try again.