diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-17 00:49:41 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-17 00:49:41 +0000 |
commit | 86deb270953f9c5b62813d3e1938f33cc807bd7f (patch) | |
tree | b057cb0c34d15e3242f07a7b2fe54f9a9e1c16f3 /activesupport/CHANGELOG | |
parent | 05a5209f823f18e423e320f6bce4a91532c8bd03 (diff) | |
download | rails-86deb270953f9c5b62813d3e1938f33cc807bd7f.tar.gz rails-86deb270953f9c5b62813d3e1938f33cc807bd7f.tar.bz2 rails-86deb270953f9c5b62813d3e1938f33cc807bd7f.zip |
Hash#slice(*keys) returns a new hash with only the given keys. #slice! replaces the hash with only the given keys. Works with HashWithIndifferentAccess also.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 9f5c98a1cd..a97cba31ee 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Hash#slice(*keys) returns a new hash with only the given keys. #slice! replaces the hash with only the given keys. Works with HashWithIndifferentAccess also. [Jeremy Kemper] + * HashWithIndifferentAccess#to_hash converts to a Hash with String keys and the same default value. [Jeremy Kemper] * Fix remove_constant to correctly handle constant names of the form "::A::...". References #6720. [Nicholas Seckar] |