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.

Wolfram Arnold's latest activity

Sunday, December 28 2008
1652 named_scope incorrectly uses SQL COUNT for empty?, size methods when :select ... was updated in Ruby on Rails
  • Wolfram Arnold
    Wolfram Arnold commented at 6:21 PM

    In response to Frederick Cheung's comment: The second question first: Yes, it is correct that the problem is also that the group clause gets dropped. This is ta...

  • Wolfram Arnold
    • Tag changed from 2.2.2, named_scope to 2.2.2, activerecord, named_scope, patch, tested
    by Wolfram Arnold at 1:18 AM

    Patch attached

  • Wolfram Arnold
    Wolfram Arnold created the ticket at 12:48 AM

    When using the :select option for named_scope, the implementation incorrectly assumes that an invocation of .empty? or .size should use the count method when no...