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:
authorgfyoung <gfyoung17@gmail.com>2018-07-24 13:00:56 +0300
committergfyoung <gfyoung17@gmail.com>2018-07-24 23:18:25 +0300
commitd5bf57a6afe1ed9ba419a34b352020a44960b48d (patch)
treeb2b77911cf0e18f4cb1b3c1cfac38c7000f69eb0 /app/policies/deploy_token_policy.rb
parentf5b45519dba89296cbd6f350f5c29b655d5aef8d (diff)
Enable frozen string in presenters and policies
Enable frozen string in: * app/presenters * app/policies Partially addresses #47424.
Diffstat (limited to 'app/policies/deploy_token_policy.rb')
-rw-r--r--app/policies/deploy_token_policy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/policies/deploy_token_policy.rb b/app/policies/deploy_token_policy.rb
index d1b459cfc90..e648df3edfc 100644
--- a/app/policies/deploy_token_policy.rb
+++ b/app/policies/deploy_token_policy.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class DeployTokenPolicy < BasePolicy
with_options scope: :subject, score: 0
condition(:maintainer) { @subject.project.team.maintainer?(@user) }