summaryrefslogtreecommitdiff
path: root/users/app/controllers/v1/users_controller.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-09-03 11:08:42 +0200
committerAzul <azul@leap.se>2013-09-03 11:08:55 +0200
commit31429466c9e21f3360c9b550fa93170200f15493 (patch)
tree64d7edb777b6a84f3e3aaab264ce0cc1a0e0dc62 /users/app/controllers/v1/users_controller.rb
parente81357bcb0be14a08aa185680b8b98ea92e45fab (diff)
clearify usage of V1::UsersController#index for autocomplete
[skip ci]
Diffstat (limited to 'users/app/controllers/v1/users_controller.rb')
-rw-r--r--users/app/controllers/v1/users_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/app/controllers/v1/users_controller.rb b/users/app/controllers/v1/users_controller.rb
index f380c19..4f82572 100644
--- a/users/app/controllers/v1/users_controller.rb
+++ b/users/app/controllers/v1/users_controller.rb
@@ -8,6 +8,7 @@ module V1
respond_to :json
+ # used for autocomplete for admins in the web ui
def index
if params[:query]
@users = User.by_login.startkey(params[:query]).endkey(params[:query].succ)