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.

Brian Underwood's latest activity

Wednesday, October 13 2010
1860 with_scope should merge complex includes was updated in Ruby on Rails
  • Brian Underwood
    Brian Underwood commented at 10:44 PM

    Digging around a bit myself, it looks like the "includes_values" instance_variable is getting set to [:user, {:user=>:regions}]. Is that right?

    I found that var...

  • Brian Underwood
    Brian Underwood commented at 10:36 PM

    Perhaps not surprisingly, Change.includes(:user).includes(:user => :regions).where('users.deleted_at IS NULL').size works, probably because there are no fields ...

  • Brian Underwood
    Brian Underwood commented at 10:11 PM

    I think that this is still happening in Rails 3. It've been struggling with this for a while. Could it be re-opened?

    It shows up when you use a where/order whic...

Wednesday, August 11 2010
5353 ActiveRecord adds comma to query's column list when referring to a model with... was updated in Ruby on Rails
Tuesday, August 10 2010
5353 ActiveRecord adds comma to query's column list when referring to a model with... was created in Ruby on Rails
  • Brian Underwood
    Brian Underwood created the ticket at 9:21 PM

    I have two basic models (sample Rails app with a failing test attached):

    class Bar < ActiveRecord::Base
      default_scope select('id')
      has_many :bazs
    end
    
    cla...