Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2017-11-27 15:59:41 +0300
committerMatija Čupić <matteeyah@gmail.com>2017-11-27 15:59:41 +0300
commit01c9d8fe5d9d5b52f1d9c65daed5a432e230b877 (patch)
treeed3003ddf71cf52ac43893eb458d40d196a92564 /app/finders/clusters_finder.rb
parent48b2563e63f22d9edec7dbc9f83fdf94ff423820 (diff)
Use global project variable in ClustersFinder
Diffstat (limited to 'app/finders/clusters_finder.rb')
-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