Wolfram Arnold
Rails Consultant · Not a member
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 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...
-
- Tag changed from 2.2.2, named_scope to 2.2.2, activerecord, named_scope, patch, tested
Patch attached
-
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...