add api users filter and integrate users select2

This commit is contained in:
Dmitriy Zaporozhets 2013-03-13 21:37:50 +02:00
parent 163908b393
commit bf17d976a7
7 changed files with 28 additions and 2 deletions

View file

@ -9,7 +9,8 @@ module Gitlab
# Example Request:
# GET /users
get do
@users = paginate User
@users = User.scoped
@users = @users.search(params[:search]) if params[:search].present?
present @users, with: Entities::User
end