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.

trevor's latest activity

Tuesday, November 23 2010
6042 Upgrade Prototype to 1.7 was created in Ruby on Rails
Tuesday, August 24 2010
3939 'type' field not filled when created from hierarchy was updated in Ruby on Rails
  • trevor
    trevor commented at 4:40 AM

    can this patch be added to 3.0 final?

Thursday, August 19 2010
3939 'type' field not filled when created from hierarchy was updated in Ruby on Rails
  • trevor
    trevor commented at 6:38 PM

    +1 agreed - patch works and fixes issue. small edge case related bug with STI.

  • trevor
    trevor commented at 6:30 PM

    just tried that a few different ways and couldn't get it to take - weird bug.

  • trevor
    trevor commented at 5:26 PM

    ... and i meant that as -

    #<First id: 1, type: "First", parent_id: nil, created_at: "2010-08-19 16:24:48", updated_at: "2010-08-19 16:24:48">
    #<Second id: nil,...
  • trevor
    trevor commented at 5:24 PM

    okay, i'm good then. thanks for the patch and all your effort!

    out of curiosity, how could i pre load the class in development?

    for example i would have thought...

  • trevor
    trevor commented at 4:52 PM

    did you switch the creation order as well?

    here's how i'm reproducing the issue, with CreateEntries as the migration. the issue is apparent with B.lab

    ### A.la...
Wednesday, August 18 2010
3939 'type' field not filled when created from hierarchy was updated in Ruby on Rails
  • trevor
    trevor commented at 8:09 PM

    trying patch with edge now, still seeing issue, try switching b1 with b in your example on a clean database.

    ## First-bug.lab
    
    class Second < ActiveRecord::Bas...
Tuesday, August 17 2010
3939 'type' field not filled when created from hierarchy was updated in Ruby on Rails
  • trevor
    trevor commented at 6:25 PM

    this is interesting. note that i monkey-patched RC, this is the behavior that i'm seeing - please see if you can reproduce. it works correctly as soon as there'...

Monday, August 16 2010
3939 'type' field not filled when created from hierarchy was updated in Ruby on Rails
  • trevor
    trevor commented at 5:11 PM

    applied the patch, but still seeing the type being set to 'nil'.

    irb(main):003:0> a.seconds.create
    => #<Second id: 2, type: nil, parent_id: 1, created_at: "201...