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.

David Stevenson's latest activity

Saturday, December 06 2008
1507 preloading has_one :through on a belongs_to was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 2:47 AM
    1. toary has Bren driving me crazy! Can't include past a has one thru cause of it!
Thursday, November 13 2008
1300 destroy_all with conditions on has_many association was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 11:34 PM

    +1... associations should have a destroy_all method if they have a delete_all method.

Tuesday, November 04 2008
1077 problems with aliased joins was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 5:43 PM

    DHH - Why did you just mark this invalid? Jens said there was no actual bug, and he made a mistake in commenting on this at all?

Saturday, November 01 2008
1077 problems with aliased joins was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 7:00 PM

    Koz & Jens,

    I'm afraid I don't see the issue that Jens is trying to show us. The patch that we submitted simply removes two completely-string-identical joins. T...

Friday, October 17 2008
1104 references_eager_loaded_tables? should search tables in :join clauses was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 6:12 AM

    Sorry - new include syntax is not a syntax but an implementation. It's the process of preloading associations using a separate query for each level of the inclu...

Thursday, October 16 2008
1185 Old-single-query-includes should be globally disableable was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 6:52 PM

    I had originally opened this ticket:

    http://rails.lighthouseapp.com/p...

    which I guess I could try to come up with a patch for. But it seems to be orthogonal t...

  • David Stevenson
    David Stevenson commented at 6:50 PM

    I think it might be possible to find all the tables from :joins, but it would probably be easier to approach this problem the other way around:

    Why don't we mak...

Thursday, October 09 2008
1185 Old-single-query-includes should be globally disableable was updated in Ruby on Rails
  • David Stevenson
    • Tag changed from activerecord, config, include, query, single to activerecord, config, include, join, left, outer, patch, query, single
    by David Stevenson at 5:44 PM

    Previous patch had a bad line in it, which didn't change the functionality but was misleading. Removed line from the diff and resubmitting.

  • David Stevenson
    David Stevenson commented at 5:34 PM

    Here's the patch... pretty trivial.

1078 Using :include => :assoc AND :join => :assoc leads to alias issue was updated in Ruby on Rails