summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2017-11-27 13:59:41 +0100
committerMatija Čupić <matteeyah@gmail.com>2017-11-27 13:59:41 +0100
commit01c9d8fe5d9d5b52f1d9c65daed5a432e230b877 (patch)
treeed3003ddf71cf52ac43893eb458d40d196a92564 /app/finders
parent48b2563e63f22d9edec7dbc9f83fdf94ff423820 (diff)
downloadgitlab-ce-01c9d8fe5d9d5b52f1d9c65daed5a432e230b877.tar.gz
Use global project variable in ClustersFinder
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/clusters_finder.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/finders/clusters_finder.rb b/app/finders/clusters_finder.rb
index 782ac28e69f..2b29c7bdf12 100644
--- a/app/finders/clusters_finder.rb
+++ b/app/finders/clusters_finder.rb
@@ -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