summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2017-12-01 18:01:59 +0100
committerMatija Čupić <matteeyah@gmail.com>2017-12-01 18:01:59 +0100
commitc2bf452c171ec5c8cd2901f3746f5a3c5e55bc77 (patch)
tree78707bb6ffc9e1e0e5555432cf846a39a00dff68 /app
parent9199d30a81e221ebe5d76fef58071d991e02ef9f (diff)
downloadgitlab-ce-c2bf452c171ec5c8cd2901f3746f5a3c5e55bc77.tar.gz
Refactor ClustersController pagination test
Diffstat (limited to 'app')
-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 c24b413b51e..2843045fdc4 100644
--- a/app/controllers/projects/clusters_controller.rb
+++ b/app/controllers/projects/clusters_controller.rb
@@ -9,7 +9,7 @@ class Projects::ClustersController < Projects::ApplicationController
def index
@scope = params[:scope] || 'all'
clusters = ClustersFinder.new(project, current_user, @scope).execute
- @clusters = clusters.page(params[:page]).per(20)
+ @clusters = clusters.page(params[:page])
@active_count = project.clusters.enabled.count
@inactive_count = project.clusters.disabled.count
@all_count = @active_count + @inactive_count