Browse files

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'`.
  • Loading branch information...
1 parent a429d9e commit cfd85255d6dd714425010fc98cadf3f42f7ce367 @tricknotes tricknotes committed Feb 10, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 activesupport/lib/active_support/i18n.rb
@@ -1,5 +1,7 @@
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

0 comments on commit cfd8525

Please sign in to comment.