Welcome to mirror list, hosted at ThFree Co, Russian Federation.

starred_projects_finder.rb « finders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fcb469d1d17d968fed988444c8db94efa9cf4038 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class StarredProjectsFinder < ProjectsFinder
  def initialize(user, params: {}, current_user: nil)
    super(
      params: params,
      current_user: current_user,
      project_ids_relation: user.starred_projects.select(:id)
    )
  end
end