Set current user as deploy key user

This commit is contained in:
Ali Ibrahim 2016-08-19 19:31:40 -04:00
parent 2811a213a6
commit c3508851bf

View file

@ -16,7 +16,7 @@ class Projects::DeployKeysController < Projects::ApplicationController
end
def create
@key = DeployKey.new(deploy_key_params)
@key = DeployKey.new(deploy_key_params.merge(user: current_user))
set_index_vars
if @key.valid? && @project.deploy_keys << @key