OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Paginate users in users api
[wvm/gitlab.git]
/
lib
/
api
/
users.rb
diff --git
a/lib/api/users.rb
b/lib/api/users.rb
index
125a862
..
4198387
100644
(file)
--- 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