diff options
author | Duana Saskia <starkcoffee@users.noreply.github.com> | 2018-09-02 01:55:06 +1000 |
---|---|---|
committer | Duana Saskia <starkcoffee@users.noreply.github.com> | 2018-09-05 21:58:52 +1000 |
commit | 9d742e61a79dcc85589598259e2fdac030b7ac00 (patch) | |
tree | b1f0b422eeebbc98a52d2003e7ead78fb504afd6 /app/models/project.rb | |
parent | c322976032e45f02b60701ebf244a8a876063078 (diff) | |
download | gitlab-ce-9d742e61a79dcc85589598259e2fdac030b7ac00.tar.gz |
Refactor: move active hook filter to TriggerableHooks
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 72a53e1a50d..728bbffd671 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1163,7 +1163,7 @@ class Project < ActiveRecord::Base def execute_hooks(data, hooks_scope = :push_hooks) run_after_commit_or_now do - hooks.hooks_for(hooks_scope).select {|hook| ActiveHookFilter.new(hook).matches?(hooks_scope, data)}.each do |hook| + hooks.hooks_for(hooks_scope).select_active(hooks_scope, data).each do |hook| hook.async_execute(data, hooks_scope.to_s) end SystemHooksService.new.execute_hooks(data, hooks_scope) |