summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-07-27 17:37:19 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-07-27 17:52:45 +0800
commitb577faf785a2c04f8376e3dc597dc0d6ec0b753d (patch)
tree3968919ef5dff80b90825182c9701486005b9407 /app/policies
parente3aaa56c92f97f8aff3aeb847754794e9eae4706 (diff)
downloadgitlab-ce-b577faf785a2c04f8376e3dc597dc0d6ec0b753d.tar.gz
Rename the module and add a simple test to check
if all methods are also presented in the user.
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/concerns/policy_actor.rb (renamed from app/policies/concerns/policy_checkable.rb)2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/concerns/policy_checkable.rb b/app/policies/concerns/policy_actor.rb
index 5aae23c18e9..069d065280e 100644
--- a/app/policies/concerns/policy_checkable.rb
+++ b/app/policies/concerns/policy_actor.rb
@@ -3,7 +3,7 @@
# Include this module if we want to pass something else than the user to
# check policies. This defines several methods which the policy checker
# would call and check.
-module PolicyCheckable
+module PolicyActor
extend ActiveSupport::Concern
def blocked?