summaryrefslogtreecommitdiff
path: root/app/finders/fork_projects_finder.rb
blob: 28d1b31868e7c620c8414e939f85bcde2e0eaa10 (plain)
1
2
3
4
5
6
class ForkProjectsFinder < ProjectsFinder
  def initialize(project, params: {}, current_user: nil)
    project_ids = project.forks.includes(:creator).select(:id)
    super(params: params, current_user: current_user, project_ids_relation: project_ids)
  end
end