diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-07-17 15:28:02 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-07-17 15:28:02 +0100 |
commit | b3a2ee7b87a6b2a4c6ff086644f40a472a676b65 (patch) | |
tree | 9ca4ec7e2b719bb16c99aae05091bc9ae3f61cd9 /activesupport/lib | |
parent | bbab6391366f59189e84d2b8de2a63bea91a9851 (diff) | |
download | rails-b3a2ee7b87a6b2a4c6ff086644f40a472a676b65.tar.gz rails-b3a2ee7b87a6b2a4c6ff086644f40a472a676b65.tar.bz2 rails-b3a2ee7b87a6b2a4c6ff086644f40a472a676b65.zip |
Revert "Hash#slice supports an array of keys [#613 state:resolved]"
This reverts commit 396f9df8916b71f83aad8d56559cf55fc8501679.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/slice.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/slice.rb b/activesupport/lib/active_support/core_ext/hash/slice.rb index d3837d2e54..be4dec6e53 100644 --- a/activesupport/lib/active_support/core_ext/hash/slice.rb +++ b/activesupport/lib/active_support/core_ext/hash/slice.rb @@ -12,7 +12,6 @@ module ActiveSupport #:nodoc: module Slice # Returns a new hash with only the given keys. def slice(*keys) - keys.flatten! keys = keys.map! { |key| convert_key(key) } if respond_to?(:convert_key) hash = {} keys.each { |k| hash[k] = self[k] if has_key?(k) } |