This project is archived and is in readonly mode.

#667 ✓wontfix

OrderedHash : application breaks

Reported by Jérôme | July 21st, 2008 @ 07:58 AM | in 2.x


Arrays handled with methods such as group_by now turn into OrderedHash instead of hashes with rails 2.1 and ruby 1.8. A lots of Enumerable methods are then broken on these objects unless you send a .to_hash right after the group_by to get back a real hash to work on.

My 2 cents.

Comments and changes to this ticket

  • Pratik

    Pratik July 21st, 2008 @ 02:10 PM

    • State changed from “new” to “wontfix”

    You could just submit the patches as and when you come across something that's failing.


  • Jérôme

    Jérôme July 21st, 2008 @ 03:09 PM


    Unfortunately I can't find out how to fix it. I just hope this ticket will help people understand using the Enumerable mixin may not work and how to simply revert to a normal hash with ruby < 1.9 resolves it.

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=""></a>

People watching this ticket