diff options
author | Phil Hughes <me@iamphill.com> | 2016-09-05 09:38:37 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-09-05 09:38:37 +0100 |
commit | c735c53aae8681d95584d921f12020774e4fd23c (patch) | |
tree | b84be165a8ed1f95452253747d2f8d5a0ff6bbf3 /app/policies/commit_status_policy.rb | |
parent | 85f6244ce852fb6b788ea660c7d0cbe14ec10a20 (diff) | |
parent | fe3d94e8e2e3f5d54575a7f16440cc1711617d2b (diff) | |
download | gitlab-ce-build-cancel-spinner.tar.gz |
Merge branch 'master' into build-cancel-spinnerbuild-cancel-spinner
Diffstat (limited to 'app/policies/commit_status_policy.rb')
-rw-r--r-- | app/policies/commit_status_policy.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/commit_status_policy.rb b/app/policies/commit_status_policy.rb new file mode 100644 index 00000000000..593df738328 --- /dev/null +++ b/app/policies/commit_status_policy.rb @@ -0,0 +1,5 @@ +class CommitStatusPolicy < BasePolicy + def rules + delegate! @subject.project + end +end |