• Yorick Peterse's avatar
    Refactor Gitlab::ProjectSearchResults · ec349dc1
    Yorick Peterse authored
    Previously this class would be given a project ID which was then used to
    retrieve the corresponding Project object. However, in all cases the
    Project object was already known as it was used to grab the ID to pass
    to ProjectSearchResults. By just passing a Project instead we remove the
    need for an extra query as well as the need for some other complexity
    in this class.
    ec349dc1
project_search_results.rb 1.93 KB