diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-04-06 01:07:36 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-07 05:20:16 +0300 |
commit | 2c6c61815edada16c4477c938209c24c647e1798 (patch) | |
tree | 1d896b8ac1c5160b33116bc6d60e785df51cce79 /app/controllers/projects/deploy_tokens_controller.rb | |
parent | 6b2954ec8a2e17c913872c32386cb2b08f2db1c2 (diff) |
Get rid of Redis when dealing with deploy tokens
We use controller actions to pass a newly created token and errors
Diffstat (limited to 'app/controllers/projects/deploy_tokens_controller.rb')
-rw-r--r-- | app/controllers/projects/deploy_tokens_controller.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/controllers/projects/deploy_tokens_controller.rb b/app/controllers/projects/deploy_tokens_controller.rb index e3a2e5697b5..5d236966894 100644 --- a/app/controllers/projects/deploy_tokens_controller.rb +++ b/app/controllers/projects/deploy_tokens_controller.rb @@ -1,16 +1,6 @@ class Projects::DeployTokensController < Projects::ApplicationController before_action :authorize_admin_project! - def create - @token = DeployTokens::CreateService.new(@project, current_user, deploy_token_params).execute - - if @token.valid? - flash[:notice] = 'Your new project deploy token has been created.' - end - - redirect_to project_settings_repository_path(project) - end - def revoke @token = @project.deploy_tokens.find(params[:id]) @token.revoke! |