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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

