diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-18 01:23:04 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-18 01:23:04 +0800 |
commit | 2489332297b441b3ebc0c3df2e8ff14dc88a72cf (patch) | |
tree | 51d5155714091bc2d3a24957463ea41c07e75e66 /app/controllers/admin/deploy_keys_controller.rb | |
parent | a8a879eebc805f27de9eb27fa05bce291ee931ff (diff) | |
download | gitlab-ce-2489332297b441b3ebc0c3df2e8ff14dc88a72cf.tar.gz |
Don't notify user for deploy keys, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18517263
Diffstat (limited to 'app/controllers/admin/deploy_keys_controller.rb')
-rw-r--r-- | app/controllers/admin/deploy_keys_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/deploy_keys_controller.rb b/app/controllers/admin/deploy_keys_controller.rb index 285e8495342..6b146712940 100644 --- a/app/controllers/admin/deploy_keys_controller.rb +++ b/app/controllers/admin/deploy_keys_controller.rb @@ -10,7 +10,7 @@ class Admin::DeployKeysController < Admin::ApplicationController end def create - @deploy_key = deploy_keys.new(deploy_key_params) + @deploy_key = deploy_keys.new(deploy_key_params.merge(user: current_user)) if @deploy_key.save redirect_to admin_deploy_keys_path |