From 976e22e6757e376c6702a1e3b93f3f7e8ac448cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20=C4=8Cupi=C4=87?= Date: Thu, 30 Nov 2017 16:41:07 +0100 Subject: Use strings for @scope in ClustersController#index --- app/controllers/projects/clusters_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/projects/clusters_controller.rb') diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb index 48c88bc9b0d..c24b413b51e 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] || :all + @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 -- cgit v1.2.3