summaryrefslogtreecommitdiff
path: root/app/models/deploy_token.rb
diff options
context:
space:
mode:
authordineshpanda <dineshpanda92@gmail.com>2019-09-01 01:27:00 +0530
committerdineshpanda <dineshpanda92@gmail.com>2019-09-01 01:27:00 +0530
commit20111b045d7df27223808b1e8eaa4861d4906863 (patch)
treea8050f23fb5ef660f2c366c86e9230c237f4a63a /app/models/deploy_token.rb
parentdc864927246746a34b675c7ee8ffbd1b533841e0 (diff)
downloadgitlab-ce-20111b045d7df27223808b1e8eaa4861d4906863.tar.gz
Avoid calling freeze on already frozen strings in app/models
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 85f5a2040c0..20e1d802178 100644
--- a/app/models/deploy_token.rb
+++ b/app/models/deploy_token.rb
@@ -8,7 +8,7 @@ class DeployToken < ApplicationRecord
add_authentication_token_field :token, encrypted: :optional
AVAILABLE_SCOPES = %i(read_repository read_registry).freeze
- GITLAB_DEPLOY_TOKEN_NAME = 'gitlab-deploy-token'.freeze
+ GITLAB_DEPLOY_TOKEN_NAME = 'gitlab-deploy-token'
default_value_for(:expires_at) { Forever.date }