• Yorick Peterse's avatar
    Improve checking if projects would be returned · f77fda64
    Yorick Peterse authored
    In various places we check if the same relation would return projects.
    This is done using "any?" which will run a COUNT query with any
    LIMIT/OFFSET values still applied.
    
    To work around all this we introduce 2 helper methods that take care of
    doing the right thing. This leads to the produced queries being simpler
    and fewer queries being executed.
    f77fda64
_new_project_item_select.html.haml 421 Bytes