Here’s the quick and dirty:
Ticket.wasted.all.size
=> 1
Ticket.wasted.count
=> 10
It looks like the count operation is completely ignoring the :group
option that the “wasted” named scope is setting. I am pretty sure
calculations allow grouping, any idea why the :group option is being
ignored here? Or does anyone know a work around for this?
Thanks for your help.