• Sean McGivern's avatar
    Refactor IssuableFinder to extract model-specific logic · 3c51ff56
    Sean McGivern authored
    By extracting a new `filter_items` method, we can override that in the
    IssuesFinder and MergeRequestsFinder separately, so we don't need checks that
    the model is the correct one, because we can just use the class we're in to know
    that.
    
    We can do the same for the VALID_PARAMS constant, by making it a class method.
    3c51ff56
merge_requests_action.rb 569 Bytes