This project is archived and is in readonly mode.

#1559 ✓committed
Eloy Duran

[Patch] OrderedHash does not sync it's @keys after mutating operations.

Reported by Eloy Duran | December 11th, 2008 @ 01:19 PM | in 2.x

Here's a patch which fixes this for #delete_if, #reject!, and #reject.

This probably holds true for any other mutating method, I haven't gone through them all except these which I needed.

If the recent change to OrderedHash, to subclass Hash, was a speed improvement; would it still be so after fixing all mutating methods like these?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket