aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2009-02-06 12:13:44 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-02-06 12:13:44 +0100
commit7a5da7ce785616d79843dfebbb5107be8b46f8c5 (patch)
tree355145e59fbf166b8f2cde23dc8a13b188384c7e /activesupport
parent81c7a5d48d972c9e3973b4c018fafae1dfd9c0de (diff)
parentbe098f840614bbb71fe26f0e2b4c064b6866c076 (diff)
downloadrails-7a5da7ce785616d79843dfebbb5107be8b46f8c5.tar.gz
rails-7a5da7ce785616d79843dfebbb5107be8b46f8c5.tar.bz2
rails-7a5da7ce785616d79843dfebbb5107be8b46f8c5.zip
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/inflector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb
index 4921b99677..5ff6f50fb3 100644
--- a/activesupport/lib/active_support/inflector.rb
+++ b/activesupport/lib/active_support/inflector.rb
@@ -284,7 +284,7 @@ module ActiveSupport
# 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öö")
+ elsif "foo" != (Inflector.transliterate("föö") rescue nil)
undef_method :transliterate
def transliterate(string)
string.mb_chars.normalize(:kd). # Decompose accented characters