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-29 19:21:34 +0300
committerMatija Čupić <matteeyah@gmail.com>2017-11-29 19:22:32 +0300
commit062f011d32ac03e3b23a40301ec50733e9466433 (patch)
treec14dd5dc9ff177f4c9274a84c0ca201356739533 /app/controllers/projects/clusters_controller.rb
parent80d21e647b7234b8d73590d0c5b03a32a3df491f (diff)
Default to :all scope for ClustersController#index
Diffstat (limited to 'app/controllers/projects/clusters_controller.rb')
-rw-r--r--app/controllers/projects/clusters_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb
index 8205068ae42..48c88bc9b0d 100644
--- a/app/controllers/projects/clusters_controller.rb
+++ b/app/controllers/projects/clusters_controller.rb
@@ -7,7 +7,7 @@ class Projects::ClustersController < Projects::ApplicationController
before_action :authorize_admin_cluster!, only: [:destroy]
def index
- @scope = params[:scope]
+ @scope = params[:scope] || :all
clusters = ClustersFinder.new(project, current_user, @scope).execute
@clusters = clusters.page(params[:page]).per(20)
@active_count = project.clusters.enabled.count