aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/slice.rb
Commit message (Collapse)AuthorAgeFilesLines
* First pass at cleaning up action cachingYehuda Katz2009-10-281-0/+6
|
* Convert hash extension modules to class reopensJeremy Kemper2009-03-211-37/+29
|
* MaKe Hash#slice! return removed values, akin to Array [#971 state:resolved]trans2008-12-261-1/+8
| | | | Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
* slice now returns indifferent hash if called on oneadam2008-09-231-1/+1
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1096 state:committed]
* Add extra tests to ensure Hash#slice works with an array as a key. #613MatthewRudy2008-07-171-0/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert "Hash#slice supports an array of keys [#613 state:resolved]"Pratik Naik2008-07-171-1/+0
| | | | This reverts commit 396f9df8916b71f83aad8d56559cf55fc8501679.
* Hash#slice supports an array of keys [#613 state:resolved]Josh Owens2008-07-161-0/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* No need to build a Set since we're iterating instead of checking for ↵Jeremy Kemper2008-06-071-4/+2
| | | | inclusion now
* Fixed the brokeness from 952ec79bec313e0001adfc8c86f7970448d32db9David Heinemeier Hansson2008-06-021-1/+1
|
* Faster Hash#slice that doesn't use Enumerable#include?.Cheah Chu Yeow2008-06-021-1/+3
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert [9209] Use Hash#exceptPratik Naik2008-04-021-16/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Adding Hash#without Closes #7369 [eventualbuddha]Pratik Naik2008-04-021-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#slice(*keys) returns a new hash with only the given keys. #slice! ↵Jeremy Kemper2006-12-171-0/+28
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