From c348284fedb487474626b3dae9be73311f8382df Mon Sep 17 00:00:00 2001 From: randx Date: Tue, 9 Oct 2012 10:01:07 +0300 Subject: [PATCH] Reduce count of projects on dashboard to 20 --- app/controllers/dashboard_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index 1f142dae..ee82d0f4 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -4,7 +4,7 @@ class DashboardController < ApplicationController def index @groups = Group.where(id: current_user.projects.pluck(:group_id)) @projects = current_user.projects_with_events - @projects = @projects.page(params[:page]).per(40) + @projects = @projects.page(params[:page]).per(20) @events = Event.recent_for_user(current_user).limit(20).offset(params[:offset] || 0) @last_push = current_user.recent_push