diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-05-26 20:59:00 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-05-26 20:59:00 +0300 |
commit | 2339bef1bcf77da258b2e07528122ad7a3a48407 (patch) | |
tree | 84f7e51d3cf2e1b275931c8c3e528b6c875cb2da /app/controllers | |
parent | 7911f1c0877247f943d2c5dc1cb26de19fe69c8c (diff) |
Add per page to user autocomplete
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/autocomplete_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb index e2f5aa8508e..907717dcb96 100644 --- a/app/controllers/autocomplete_controller.rb +++ b/app/controllers/autocomplete_controller.rb @@ -9,7 +9,7 @@ class AutocompleteController < ApplicationController @users = @users.where.not(id: params[:skip_users]) if params[:skip_users].present? @users = @users.active @users = @users.reorder(:name) - @users = @users.page(params[:page]) + @users = @users.page(params[:page]).per(params[:per_page]) if params[:todo_filter].present? && current_user @users = @users.todo_authors(current_user.id, params[:todo_state_filter]) |