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.

Greg Weber's latest activity

Wednesday, May 13 2009
2328 named_scope sum should delegate to Enumerable was updated in Ruby on Rails
  • Greg Weber
    Greg Weber commented at 7:14 AM

    I have the same implementation now for Enumerable#count. The main problem with the idea behind this ticket would be if someone extended ActiveRecord sum or coun...

Tuesday, March 24 2009
2328 named_scope sum should delegate to Enumerable was created in Ruby on Rails
  • Greg Weber
    Greg Weber created the ticket at 3:32 PM

    The sum method in named_scope assumes ActiveRecord sum. There may be other enumerable conflicts.

    I am currently using the following implementation for sum

      # ...