Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

OrderedHash : application breaks

#667

Hello,

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.

Reported by Jérôme · July 21st, 2008 @ 07:58 AM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to wontfix

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

    Thanks.

    July 21st, 2008 @ 02:10 PM

  2. Jérôme
    Jérôme

    Hello,

    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.

    July 21st, 2008 @ 03:09 PM