From d5bf57a6afe1ed9ba419a34b352020a44960b48d Mon Sep 17 00:00:00 2001 From: gfyoung Date: Tue, 24 Jul 2018 03:00:56 -0700 Subject: Enable frozen string in presenters and policies Enable frozen string in: * app/presenters * app/policies Partially addresses #47424. --- app/policies/deploy_token_policy.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/policies/deploy_token_policy.rb') 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) } -- cgit v1.2.3