Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11266 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

[PATCH] OrderedHash#to_hash to fix issues with group_by

Reported by: josh Assigned to: nzkoz
Priority: normal Milestone: 2.x
Component: ActiveSupport Version: edge
Severity: normal Keywords:
Cc:

Description

r8946 made group_by return a OrderedHash. However, stuff like "{}.merge(grouped_hash)" doesn't work any more. It complains that it can't convert ActiveSupport::OrderedHash into Hash. Simple solution, add to_hash to OrderedHash.

Attachments

ordered_hash_to_hash.diff (1.0 kB) - added by josh on 03/03/08 02:29:18.

Change History

03/03/08 02:29:18 changed by josh

  • attachment ordered_hash_to_hash.diff added.

03/03/08 03:31:01 changed by nzkoz

(In [8973]) 2-0-stable: Add OrderedHash#to_hash References #11266 [josh]

03/03/08 03:32:00 changed by nzkoz

  • status changed from new to closed.
  • resolution set to fixed.

(In [8974]) Add OrderedHash#to_hash. Closes #11266 [josh]