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.

Dan Kubb (dkubb)'s latest activity

Tuesday, March 16 2010
3788 [PATCH] Rails 3.0.pre initializers do not always bind in the proper order was updated in Ruby on Rails
  • Dan Kubb (dkubb)
    Dan Kubb (dkubb) commented at 10:42 PM

    FWIW, I've found it possible to do a stable topological sort using tsort by yielding to the nodes in the order they were added. So if two nodes are equivalent, ...

Tuesday, January 26 2010
3608 OrderedHash serialization doesn't work in AR was updated in Ruby on Rails
  • Dan Kubb (dkubb)
    Dan Kubb (dkubb) commented at 6:12 PM

    Another consideration that I had is should we make it so that this works the same between Ruby 1.8 and 1.9? (sorry for the extra post, I can't edit the comment ...

  • Dan Kubb (dkubb)
    Dan Kubb (dkubb) commented at 6:07 PM

    I should also note that the YAML spec has defined an ordered map type that may fit this use case more closely. It's defined as an "Ordered sequence of key:value...

  • Dan Kubb (dkubb)
    Dan Kubb (dkubb) commented at 6:45 AM

    Based on Gregor's test case reduction, it looks like YAML.load is creating the OrderedHash object without calling #initialize (or for that matter the allocate o...