diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-11-27 13:59:41 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-11-27 13:59:41 +0100 |
commit | 01c9d8fe5d9d5b52f1d9c65daed5a432e230b877 (patch) | |
tree | ed3003ddf71cf52ac43893eb458d40d196a92564 /app/finders/clusters_finder.rb | |
parent | 48b2563e63f22d9edec7dbc9f83fdf94ff423820 (diff) | |
download | gitlab-ce-01c9d8fe5d9d5b52f1d9c65daed5a432e230b877.tar.gz |
Use global project variable in ClustersFinder
Diffstat (limited to 'app/finders/clusters_finder.rb')
-rw-r--r-- | app/finders/clusters_finder.rb | 6 |
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 |