gitlab-org--gitlab-foss/app/finders/starred_projects_finder.rb

12 lines
275 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class StarredProjectsFinder < ProjectsFinder
def initialize(user, params: {}, current_user: nil)
2019-08-03 06:57:33 -04:00
super(
params: params,
current_user: current_user,
project_ids_relation: user.starred_projects.select(:id)
)
end
end