How could you perform a where clause(open to other ways of solving the same problem) with active record that only returns records that have a over 10 associations.
For Example:
I have Orders and Toys. Each order can have many toys, a 1 to many relationship.
I only want orders that have at least 10 toys.
What active record query would return to me only orders that have atleast 10 toys ?