From 3e9fc279e572d440df98fb17d83acd92b66b22dc Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 14 Oct 2008 21:23:27 +0200 Subject: Avoid warnings by undefining the old method transliterate. --- activesupport/lib/active_support/inflector.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb index 74ca732073..1ccfec4000 100644 --- a/activesupport/lib/active_support/inflector.rb +++ b/activesupport/lib/active_support/inflector.rb @@ -279,6 +279,7 @@ module ActiveSupport # The iconv transliteration code doesn't function correctly # on some platforms, but it's very fast where it does function. if "foo" != Inflector.transliterate("föö") + undef_method :transliterate def transliterate(string) string.mb_chars.normalize(:kd). # Decompose accented characters gsub(/[^\x00-\x7F]+/, '') # Remove anything non-ASCII entirely (e.g. diacritics). -- cgit v1.2.3