From 2022243a222583daaf9e00d44fa6d1a9d75d4b02 Mon Sep 17 00:00:00 2001 From: Peter Leitzen Date: Sat, 21 Jul 2018 10:52:07 +0200 Subject: Create empty Commits::UpdateService and wire it up --- app/policies/commit_policy.rb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 app/policies/commit_policy.rb (limited to 'app/policies/commit_policy.rb') 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 -- cgit v1.2.1 From 7fe85c1d42e89e91e619dcbe9ac945a9223ec72b Mon Sep 17 00:00:00 2001 From: Peter Leitzen Date: Fri, 10 Aug 2018 18:15:25 +0200 Subject: Freeze string literals See Danger's suggestions: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6869#note_93730253 --- app/policies/commit_policy.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/policies/commit_policy.rb') diff --git a/app/policies/commit_policy.rb b/app/policies/commit_policy.rb index 44063181241..67e9bc12804 100644 --- a/app/policies/commit_policy.rb +++ b/app/policies/commit_policy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CommitPolicy < BasePolicy delegate { @subject.project } end -- cgit v1.2.1