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/project.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/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index a594f2df662..2684a02caba 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1881,7 +1881,7 @@ class Project < ActiveRecord::Base
def gitlab_deploy_token
@gitlab_deploy_token ||=
- deploy_tokens.active.find_by(name: DeployToken::GITLAB_DEPLOY_TOKEN)
+ deploy_tokens.active.find_by(name: DeployToken::GITLAB_DEPLOY_TOKEN_NAME)
end
private