System Hook: implemented
This commit is contained in:
parent
c38578428b
commit
f5908cef19
9 changed files with 100 additions and 10 deletions
|
@ -1,3 +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
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue