summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorPeter Leitzen <pl@neopoly.de>2018-07-21 10:52:07 +0200
committerPeter Leitzen <pl@neopoly.de>2018-08-10 16:45:11 +0200
commit2022243a222583daaf9e00d44fa6d1a9d75d4b02 (patch)
tree0bfd3531713747382c07f5c9cc6c12cb5ca330aa /app/policies
parentd23fbbc6928983582198092cf28a0cd46d30252f (diff)
downloadgitlab-ce-2022243a222583daaf9e00d44fa6d1a9d75d4b02.tar.gz
Create empty Commits::UpdateService and wire it up
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/commit_policy.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/policies/commit_policy.rb b/app/policies/commit_policy.rb
new file mode 100644
index 00000000000..44063181241
--- /dev/null
+++ b/app/policies/commit_policy.rb
@@ -0,0 +1,3 @@
+class CommitPolicy < BasePolicy
+ delegate { @subject.project }
+end