Commit a923be95 authored by Rémy Coutable's avatar Rémy Coutable

ApplicationController::PER_PAGE has been removed, let's use 20 instead

parent 27af127e
......@@ -10,7 +10,7 @@ class AutocompleteController < ApplicationController
if params[:push_code_to_protected_branches].present? && params[:project_id].present?
project = Project.find_by(id: params[:project_id])
@users = @users.to_a.select { |user| user.can?(:push_code_to_protected_branches, project) }.take(PER_PAGE)
@users = @users.to_a.select { |user| user.can?(:push_code_to_protected_branches, project) }.take(20)
else
@users = @users.page(params[:page])
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment