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

Use global project variable in ClustersFinder

parent 48b2563e
......@@ -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
......
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