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/user_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/user_policy.rb')
-rw-r--r--app/policies/user_policy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/policies/user_policy.rb b/app/policies/user_policy.rb
index 8499e45e846..b5717029354 100644
--- a/app/policies/user_policy.rb
+++ b/app/policies/user_policy.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class UserPolicy < BasePolicy
desc "The current user is the user in question"
condition(:user_is_self, score: 0) { @subject == @user }