Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-08-01 19:51:14 +0300
committerRobert Speicher <rspeicher@gmail.com>2019-08-01 19:51:14 +0300
commitf74b33cf6e5ee415417d9f2ee255f97ab6fcf7ad (patch)
treee05c4aaaf46e2f8d080c49f5a3575f32d962bdc8 /app/controllers/autocomplete_controller.rb
parent5b38fced90e81241b4266bac78c8e53a432f5144 (diff)
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.rb2
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