# Model.scope.all.size != Model.scope.count

**URL:** <https://www.ruby-forum.com/t/model-scope-all-size-model-scope-count/170406>\
**Category:** Rails\
**Created:** [June 17, 2009, 8:26am UTC](https://www.ruby-forum.com/t/model-scope-all-size-model-scope-count/170406 "2009-06-17T08:26:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [June 17, 2009, 8:26am UTC](https://www.ruby-forum.com/t/model-scope-all-size-model-scope-count/170406/1 "2009-06-17T08:26:40Z")

</div>

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.
