From e0993c6c376d62716757a8a7f476ed0c369d0fc7 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 14 Oct 2008 21:22:11 +0200 Subject: Reverse the order of the iconv arguments to remain compatible with older rubies / iconvs. [#1195 state:resolved] --- activesupport/lib/active_support/inflector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/inflector.rb') 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 -- cgit v1.2.3