diff options
author | Mikhail Dieterle <MikDiet@gmail.com> | 2012-07-09 00:10:16 +0300 |
---|---|---|
committer | Mikhail Dieterle <MikDiet@gmail.com> | 2012-10-08 01:20:36 +0300 |
commit | 5d27338ab08496b41ef71c789e5ae4de0b3b8df7 (patch) | |
tree | 3fba86faec8e3836d0bee8f84ad14376a4d167af /activesupport/CHANGELOG.md | |
parent | 800604e4452dcc39849cbab087d96c3b7ca44e47 (diff) | |
download | rails-5d27338ab08496b41ef71c789e5ae4de0b3b8df7.tar.gz rails-5d27338ab08496b41ef71c789e5ae4de0b3b8df7.tar.bz2 rails-5d27338ab08496b41ef71c789e5ae4de0b3b8df7.zip |
make Hash#extract! more symmetric with Hash#slice
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 0a12ba6cdd..82752b6776 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,5 +1,16 @@ ## Rails 4.0.0 (unreleased) ## +* Hash#extract! returns only those keys that present in the reciever. + + {:a => 1, :b => 2}.extract!(:a, :x) # => {:a => 1} + + *Mikhail Dieterle* + +* Hash#extract! returns the same subclass, that the reciever is. I.e. + HashWithIndifferentAccess#extract! returns HashWithIndifferentAccess instance. + + *Mikhail Dieterle* + * Optimize ActiveSupport::Cache::Entry to reduce memory and processing overhead. *Brian Durand* * Tests tag the Rails log with the current test class and test case: |