I don\'t have any ideas. Could you give me any clues (like reference sites). Any help will be appreciated.
Model1: GROUP
It might be quite important to mention that using includes has possibly unwanted side-effects.
if the filtered association is subsequently scoped, all of the original filtering disappears
As it turns out, by scoping on the filtered association we’ve lost any filtering-as-side-effect that we attained from includes. And it’s not because of how we searched, either.
Make sure to read the complete article and alternatively there's a gem for that.