ghorner
Not a member
ghorner's latest activity
Thursday, February 03 2011
6366
ActiveSupport::OrderedHash#each* methods without block are incorrect in 1.8
was updated
in Ruby on Rails
-
-
ghorner created the ticket at 4:34 AMIn ruby 1.8.x, ordered hashes don't behave like normal hashes when calling each* methods without a block:
>> {:a => 1}.each => #<Enumerable::Enumerator:0x25637...
Wednesday, February 02 2011
6364
[PATCH] ActiveSupport::OrderedHash#each* methods don't return self
was updated
in Ruby on Rails
-
- Title changed from ActiveSupport::OrderedHash#each* methods don't return self to [PATCH] ActiveSupport::OrderedHash#each* methods don't return self
- Tag set to patch
-
ghorner created the ticket at 3:21 PMI noticed while using Enumerable#group_by that ordered hashes don't act like normal hashes. Specifically, their each* methods return their keys instead of self:
...