Use global project variable in ClustersFinder
This commit is contained in:
parent
48b2563e63
commit
01c9d8fe5d
1 changed files with 3 additions and 3 deletions
|
@ -8,11 +8,11 @@ class ClustersFinder
|
|||
def execute
|
||||
clusters = case @scope
|
||||
when :all
|
||||
project.clusters
|
||||
@project.clusters
|
||||
when :enabled
|
||||
project.clusters.enabled
|
||||
@project.clusters.enabled
|
||||
when :disabled
|
||||
project.clusters.disabled
|
||||
@project.clusters.disabled
|
||||
end
|
||||
clusters.map { |cluster| cluster.present(current_user: @user) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue