This project is archived and is in readonly mode.
.count on a named_scope on a has_many association throws error
-
Cameron Booth
I used git bisect to narrow the cause down to this commit:
http://github.com/rails/rails/co...
I'll look now at creating a test case, and possibly fixing it if I can figure it out
-
Cameron Booth
Sorry, just realized this is a duplicate bug report, with #2189 count breaks has_many through association collection with named scope and also #2310 has_many :through + scope + empty? fails in 2.3.2 (but not 2.3.0) but I don't know how to close this out or anything
-
Max Lapshin
- Tag changed from 2.3.2, :through, active_record, sql to 2.3.2, :through, active_record, duplicate, sql
-
Matt Jones
- State changed from new to duplicate
As noted, duplicate of #2189 count breaks has_many through association collection with named scope.