Commit 01c9d8fe authored by Matija Čupić's avatar Matija Čupić

Use global project variable in ClustersFinder

parent 48b2563e
...@@ -8,11 +8,11 @@ class ClustersFinder ...@@ -8,11 +8,11 @@ class ClustersFinder
def execute def execute
clusters = case @scope clusters = case @scope
when :all when :all
project.clusters @project.clusters
when :enabled when :enabled
project.clusters.enabled @project.clusters.enabled
when :disabled when :disabled
project.clusters.disabled @project.clusters.disabled
end end
clusters.map { |cluster| cluster.present(current_user: @user) } clusters.map { |cluster| cluster.present(current_user: @user) }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment