Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-04-18 20:25:57 +0300
committerMayra Cabrera <mcabrera@gitlab.com>2018-04-20 20:18:41 +0300
commit0dd6d25c251beffca510094281ac8403fad6d8d0 (patch)
treef84dc38b75693dc3752c3f2297c34566bd84ba2d /app/models/deploy_token.rb
parentf17e83653d9befc02ac0cbfe39a5e2be62cb40ef (diff)
Rename special deploy token to make it more descriptive
Also: - Includes more specs - Improves a bit the documentation
Diffstat (limited to 'app/models/deploy_token.rb')
-rw-r--r--app/models/deploy_token.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/deploy_token.rb b/app/models/deploy_token.rb
index 191f07c527f..4e450d0bdc8 100644
--- a/app/models/deploy_token.rb
+++ b/app/models/deploy_token.rb
@@ -4,7 +4,7 @@ class DeployToken < ActiveRecord::Base
add_authentication_token_field :token
AVAILABLE_SCOPES = %i(read_repository read_registry).freeze
- GITLAB_DEPLOY_TOKEN = 'gitlab-deploy-token'.freeze
+ GITLAB_DEPLOY_TOKEN_NAME = 'gitlab-deploy-token'.freeze
default_value_for(:expires_at) { Forever.date }