Default to :all scope for ClustersController#index

This commit is contained in:
Matija Čupić 2017-11-29 17:21:34 +01:00
parent 80d21e647b
commit 062f011d32
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 1 additions and 1 deletions

View File

@ -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