diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-05 20:04:11 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-06 21:20:16 -0500 |
commit | a475411f4380ef4d0260940206e2553da3b2f3ee (patch) | |
tree | f9e67c7dc2476f57fdf30a2a9e55eb323759d0b6 /app/controllers | |
parent | 2c6c61815edada16c4477c938209c24c647e1798 (diff) | |
download | gitlab-ce-a475411f4380ef4d0260940206e2553da3b2f3ee.tar.gz |
Fixes broken schema and minor changes
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/settings/repository_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/settings/repository_controller.rb b/app/controllers/projects/settings/repository_controller.rb index c085870dacd..5dfd3af1d55 100644 --- a/app/controllers/projects/settings/repository_controller.rb +++ b/app/controllers/projects/settings/repository_controller.rb @@ -10,8 +10,8 @@ module Projects def create_deploy_token @new_deploy_token = DeployTokens::CreateService.new(@project, current_user, deploy_token_params).execute - if @new_deploy_token.valid? - flash[:notice] = 'Your new project deploy token has been created.' + if @new_deploy_token.persisted? + flash.now[:notice] = 'Your new project deploy token has been created.' end render_show |