2018-09-11 15:08:34 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-19 02:53:32 -04:00
|
|
|
class ForkProjectsFinder < ProjectsFinder
|
2018-08-27 11:31:01 -04:00
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
2017-09-19 02:53:32 -04:00
|
|
|
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
|
2018-08-27 11:31:01 -04:00
|
|
|
# rubocop: enable CodeReuse/ActiveRecord
|
2017-09-19 02:53:32 -04:00
|
|
|
end
|