diff options
Diffstat (limited to 'activesupport/lib/core_ext/hash')
-rw-r--r-- | activesupport/lib/core_ext/hash/keys.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activesupport/lib/core_ext/hash/keys.rb b/activesupport/lib/core_ext/hash/keys.rb index 0db37a6374..536995dd71 100644 --- a/activesupport/lib/core_ext/hash/keys.rb +++ b/activesupport/lib/core_ext/hash/keys.rb @@ -1,6 +1,6 @@ -module ActiveSupport - module CoreExtensions - module Hash +module ActiveSupport #:nodoc: + module CoreExtensions #:nodoc: + module Hash #:nodoc: module Keys # Return a new hash with all keys converted to symbols. @@ -29,7 +29,6 @@ module ActiveSupport unknown_keys = keys - valid_keys raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty? end - end end end |