diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-03-20 00:37:54 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-20 00:37:54 +0300 |
commit | 085538c2bd817fc083ee9e42c9fdd7f74fc48ecb (patch) | |
tree | d7beb73fab81ab9bf4c1c95fe8dd0e7a0ed29c36 /app/controllers/dashboard/projects_controller.rb | |
parent | 3f22a92f4a561543c2249786b695d0c65120455b (diff) |
Use the configured Kaminari "per page" default
Diffstat (limited to 'app/controllers/dashboard/projects_controller.rb')
-rw-r--r-- | app/controllers/dashboard/projects_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/dashboard/projects_controller.rb b/app/controllers/dashboard/projects_controller.rb index 0e8b63872ca..71acc244a91 100644 --- a/app/controllers/dashboard/projects_controller.rb +++ b/app/controllers/dashboard/projects_controller.rb @@ -8,7 +8,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController @projects = filter_projects(@projects) @projects = @projects.includes(:namespace) @projects = @projects.sort(@sort = params[:sort]) - @projects = @projects.page(params[:page]).per(PER_PAGE) + @projects = @projects.page(params[:page]) @last_push = current_user.recent_push @@ -32,7 +32,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController @projects = filter_projects(@projects) @projects = @projects.includes(:namespace, :forked_from_project, :tags) @projects = @projects.sort(@sort = params[:sort]) - @projects = @projects.page(params[:page]).per(PER_PAGE) + @projects = @projects.page(params[:page]) @last_push = current_user.recent_push @groups = [] |