summaryrefslogtreecommitdiff
path: root/app/models/system_hook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/system_hook.rb')
-rw-r--r--app/models/system_hook.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/system_hook.rb b/app/models/system_hook.rb
index 376f336d37a..8ec8374bae0 100644
--- a/app/models/system_hook.rb
+++ b/app/models/system_hook.rb
@@ -1,13 +1,13 @@
class SystemHook < WebHook
- def async_execute(data)
- Resque.enqueue(SystemHookWorker, id, data)
- end
-
def self.all_hooks_fire(data)
SystemHook.all.each do |sh|
sh.async_execute data
end
end
+
+ def async_execute(data)
+ Resque.enqueue(SystemHookWorker, id, data)
+ end
end
# == Schema Information