On Sat, Jun 12, 2010 at 4:23 PM, mudge <mu...@mudge.name> wrote: > On versions of Ruby prior to 1.9 (where Hashes' keys have no set > order), ActiveSupport::OrderedHash implements its own merge and merge! > methods. These implementations differ to the standard library however > in that they do not support passing a block to merge (c.f. > http://ruby-doc.org/core/classes/Hash.html#M002880 for the standard > method signature). > > I have posted a patch including tests at > https://rails.lighthouseapp.com/projects/8994/tickets/4838-patch-add-block-support-to-activesupport-orderedhash-merge > to correct this missing functionality. The implementation also closely > matches that of Rubinius' (c.f. > http://github.com/evanphx/rubinius/blob/master/kernel/common/hash.rb#L429-447 > )
Excellent, applied http://github.com/rails/rails/compare/a087bc8...9183eae -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-c...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.