From cfd85255d6dd714425010fc98cadf3f42f7ce367 Mon Sep 17 00:00:00 2001 From: Ryunosuke SATO Date: Mon, 11 Feb 2013 02:21:59 +0900 Subject: [PATCH] Supress warning about method redifinition In i18n gem, the following methods are defined. - `Hash#except` - `Hash#slice` But if there are defined already, i18n skips these definitions. So these definition by `active_support` are required before `require 'i18n'`. --- activesupport/lib/active_support/i18n.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activesupport/lib/active_support/i18n.rb b/activesupport/lib/active_support/i18n.rb index 8d8bf02927..22521a8e93 100644 --- a/activesupport/lib/active_support/i18n.rb +++ b/activesupport/lib/active_support/i18n.rb @@ -1,5 +1,7 @@ begin require 'active_support/core_ext/hash/deep_merge' + require 'active_support/core_ext/hash/except' + require 'active_support/core_ext/hash/slice' require 'i18n' require 'active_support/lazy_load_hooks' rescue LoadError => e -- GitLab