From c2bf452c171ec5c8cd2901f3746f5a3c5e55bc77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20=C4=8Cupi=C4=87?= Date: Fri, 1 Dec 2017 18:01:59 +0100 Subject: Refactor ClustersController pagination test --- 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 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 -- cgit v1.2.3