summaryrefslogtreecommitdiff
path: root/app/finders/fork_projects_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/fork_projects_finder.rb')
-rw-r--r--app/finders/fork_projects_finder.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/finders/fork_projects_finder.rb b/app/finders/fork_projects_finder.rb
new file mode 100644
index 00000000000..28d1b31868e
--- /dev/null
+++ b/app/finders/fork_projects_finder.rb
@@ -0,0 +1,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