Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit cfd85255d6dd714425010fc98cadf3f42f7ce367 1 parent a429d9e
@tricknotes tricknotes authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  activesupport/lib/active_support/i18n.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.