Eager loading grouping association before ta_memberships

Eager Loading grouping association before ta_membership association, so Active Record can use grouping_id results when it loads ta_membership. It solved the problem when user logs in as admin.