This extension is a fix for a know bug in activrecord.
If you make a query with grouBy and Having, the count doesn't use having and so return a wrong result.
Using this extension you will get the correct result.
How to use it ¶
Download end extract the file in controllers, then configure the config main as follows: