summaryrefslogtreecommitdiff
path: root/app/controllers/autocomplete_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-rw-r--r--app/controllers/autocomplete_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb
index f84d2ed320d..32d1ddf920e 100644
--- a/app/controllers/autocomplete_controller.rb
+++ b/app/controllers/autocomplete_controller.rb
@@ -62,7 +62,9 @@ class AutocompleteController < ApplicationController
def deploy_keys_with_owners
deploy_keys = DeployKey.with_write_access_for_project(project)
- render json: DeployKeySerializer.new.represent(deploy_keys, { with_owner: true, user: current_user })
+ render json: DeployKeys::BasicDeployKeySerializer.new.represent(
+ deploy_keys, { with_owner: true, user: current_user }
+ )
end
private