2019-01-27 05:18:09 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-28 13:02:03 -05:00
|
|
|
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)
|
|
|
|
)
|
2019-01-27 05:18:09 -05:00
|
|
|
end
|
|
|
|
end
|