This project is archived and is in readonly mode.
empty? on named_scope should use count
Reported by Ryan Bates | May 27th, 2008 @ 03:35 PM
Currently, calling empty? on named_scope loads all results. Instead I think it should behave more like an association proxy which uses a count query if the results aren't loaded. This patch adds that behavior.
Comments and changes to this ticket
-
Repository May 28th, 2008 @ 04:07 PM
- State changed from new to resolved
(from [c2fbcba16d2349285368c86b849db946dc0e7d57]) Ensure named_scope#empty? uses count query. [#262 state:resolved]
Signed-off-by: Pratik Naik
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>