Class: ForkProjectsFinder

Inherits:
ProjectsFinder show all
Defined in:
app/finders/fork_projects_finder.rb

Instance Attribute Summary

Attributes inherited from ProjectsFinder

#current_user, #params, #project_ids_relation

Instance Method Summary collapse

Methods inherited from ProjectsFinder

#execute

Methods included from UpdatedAtFilter

#by_updated_at

Methods included from CustomAttributesFilter

#by_custom_attributes

Methods inherited from UnionFinder

#find_union

Constructor Details

#initialize(project, params: {}, current_user: nil) ⇒ ForkProjectsFinder

rubocop: disable CodeReuse/ActiveRecord



5
6
7
8
# File 'app/finders/fork_projects_finder.rb', line 5

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