diff options
author | Igor <idrozdov@gitlab.com> | 2019-08-01 16:51:14 +0000 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-08-01 16:51:14 +0000 |
commit | f74b33cf6e5ee415417d9f2ee255f97ab6fcf7ad (patch) | |
tree | e05c4aaaf46e2f8d080c49f5a3575f32d962bdc8 /app/controllers/autocomplete_controller.rb | |
parent | 5b38fced90e81241b4266bac78c8e53a432f5144 (diff) | |
download | gitlab-ce-f74b33cf6e5ee415417d9f2ee255f97ab6fcf7ad.tar.gz |
Add can_merge option to autocomplete response
It's used only if merge_request_iid param is provided
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-rw-r--r-- | app/controllers/autocomplete_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb index 091327931c2..f111c7ca8cc 100644 --- a/app/controllers/autocomplete_controller.rb +++ b/app/controllers/autocomplete_controller.rb @@ -16,7 +16,7 @@ class AutocompleteController < ApplicationController .new(params: params, current_user: current_user, project: project, group: group) .execute - render json: UserSerializer.new.represent(users) + render json: UserSerializer.new(params).represent(users, project: project) end def user |