summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-09-14 14:22:57 +0200
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2018-01-04 09:33:41 +0100
commitb22ae0c00eaa6bad6e664953167022d17c196d8d (patch)
tree5b2146275ec7f0a836a9f3462ca219afffa045ff /app/models/project.rb
parent9f7811e474a3f3f54f4624d19ec982239518ed67 (diff)
downloadgitlab-ce-b22ae0c00eaa6bad6e664953167022d17c196d8d.tar.gz
invoke SystemHooksService instead of direct model
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index a196c8b5c09..a8c634200ce 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -975,9 +975,7 @@ class Project < ActiveRecord::Base
end
end
- SystemHook.public_send(hooks_scope).each do |hook| # rubocop:disable GitlabSecurity/PublicSend
- hook.async_execute(data, hooks_scope.to_s)
- end
+ SystemHooksService.new.execute_hooks(data, hooks_scope)
end
def execute_services(data, hooks_scope = :push_hooks)