This project is archived and is in readonly mode.
[PATCH] ActiveSupport::OrderedHash#select does not preserve order
-
Gaius Centus Novus
This probably has something to do with
Hash#selectbeing defined in C (on C-based Rubies, at least), whereasEnumberable#selectis just an alias forEnumberable#find_all. I guessOrderedHash < Hashis more powerful than a lowlyaliasin anincluded module. -
Gaius Centus Novus
- Tag changed from 2.3.8, activesupport, orderedhash to 2.3.8, activesupport, orderedhash, patch
-
Gaius Centus Novus
- Title changed from ActiveSupport::OrderedHash#select does not preserve order to [PATCH] ActiveSupport::OrderedHash#select does not preserve order
-
Aditya Sanghi
- State changed from new to verified
- Milestone set to 3.0.2
- Assigned user set to Santiago Pastorino
- Importance changed from to Low
+1 verified on 3.x/1.8.7 and 2.3.x/1.8.7
Can you please provide the patch using git format-patch as specified on the contributor's guide though?
The patch can be applied 2.3.10 branch as well as 3.0.2.
-
Repository
- State changed from verified to resolved
(from [697f4851b8bc4eb539b3e565e8b6349cafed8aaa]) OrderedHash#select now preserves order [#5843 [PATCH] ActiveSupport::OrderedHash#select does not preserve order state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/697f4851b8bc4eb539b3e565e8b63...
