diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-16 09:26:01 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-16 09:26:01 +0300 |
commit | 880cb8aa487a78c22bedb26b3cfd0e1d8590a932 (patch) | |
tree | 138a6b10a3b5ac14bbd6d573358be69476efcf65 /lib | |
parent | 771b5c22987870c84e0bfa90549af1567cb21117 (diff) | |
download | gitlab-ce-880cb8aa487a78c22bedb26b3cfd0e1d8590a932.tar.gz |
Paginate users in users api
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/users.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index 125a8624021..4198387d403 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -12,6 +12,7 @@ module Gitlab @users = User.scoped @users = @users.active if params[:active].present? @users = @users.search(params[:search]) if params[:search].present? + @users = paginate @users present @users, with: Entities::User end |