Class: ForkProjectsFinder
- Inherits:
-
ProjectsFinder
- Object
- UnionFinder
- ProjectsFinder
- ForkProjectsFinder
- 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
-
#initialize(project, params: {}, current_user: nil) ⇒ ForkProjectsFinder
constructor
rubocop: disable CodeReuse/ActiveRecord.
Methods inherited from ProjectsFinder
Methods included from UpdatedAtFilter
Methods included from CustomAttributesFilter
Methods inherited from UnionFinder
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 |