diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-14 14:22:57 +0200 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-01-04 09:33:41 +0100 |
commit | b22ae0c00eaa6bad6e664953167022d17c196d8d (patch) | |
tree | 5b2146275ec7f0a836a9f3462ca219afffa045ff /app/models | |
parent | 9f7811e474a3f3f54f4624d19ec982239518ed67 (diff) | |
download | gitlab-ce-b22ae0c00eaa6bad6e664953167022d17c196d8d.tar.gz |
invoke SystemHooksService instead of direct model
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 4 |
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) |