Fix mixup with enabled/disabled in ClustersFinder

This commit is contained in:
Matija Čupić 2017-11-27 13:55:16 +01:00
parent efc610d32b
commit 48b2563e63
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@ class ClustersFinder
clusters = case @scope
when :all
project.clusters
when :disabled
project.clusters.enabled
when :enabled
project.clusters.enabled
when :disabled
project.clusters.disabled
end
clusters.map { |cluster| cluster.present(current_user: @user) }