aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-10-14 21:22:11 +0200
committerMichael Koziarski <michael@koziarski.com>2008-10-14 21:24:19 +0200
commite0993c6c376d62716757a8a7f476ed0c369d0fc7 (patch)
tree79e226a98854c307a98a08d02fa7debd6245ba60 /activesupport/lib/active_support/inflector.rb
parent9ab83b1cd1323e0ffebbd287c38aff614c18822c (diff)
downloadrails-e0993c6c376d62716757a8a7f476ed0c369d0fc7.tar.gz
rails-e0993c6c376d62716757a8a7f476ed0c369d0fc7.tar.bz2
rails-e0993c6c376d62716757a8a7f476ed0c369d0fc7.zip
Reverse the order of the iconv arguments to remain compatible with older rubies / iconvs.
[#1195 state:resolved]
Diffstat (limited to 'activesupport/lib/active_support/inflector.rb')
-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 336b6db47f..74ca732073 100644
--- a/activesupport/lib/active_support/inflector.rb
+++ b/activesupport/lib/active_support/inflector.rb
@@ -273,7 +273,7 @@ module ActiveSupport
# Replaces accented characters with their ascii equivalents.
def transliterate(string)
- Iconv.iconv('ascii//translit//IGNORE', 'utf-8', string).to_s
+ Iconv.iconv('ascii//ignore//translit', 'utf-8', string).to_s
end
# The iconv transliteration code doesn't function correctly