• Sean McGivern's avatar
    Remove N+1 queries from users autocomplete · c5f9b2be
    Sean McGivern authored
    Both of these were related to groups:
    
    1. We need to preload routes (using the `with_route` scope) if we're
       going to get the group's path.
    2. We were counting each group's members separately.
    
    They're in the same commit because the spec for N+1 detection wouldn't
    pass with only one of these fixes.
    c5f9b2be
group_member_spec.rb 2.56 KB