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.

Jeff Keen's latest activity

Tuesday, December 07 2010
1349 named scope with group by bug? was updated in Ruby on Rails
  • Jeff Keen
    Jeff Keen commented at 11:20 PM

    The easiest workaround I've figured out is doing something like this:

      named_scope :grouped_scope, {:group => "column1, column2"} do
        def count
          self....