2012-07-12 08:36:33 -04:00
|
|
|
class SystemHook < WebHook
|
2012-07-15 08:29:06 -04:00
|
|
|
|
|
|
|
def async_execute(data)
|
|
|
|
Resque.enqueue(SystemHookWorker, id, data)
|
|
|
|
end
|
2012-07-12 08:36:33 -04:00
|
|
|
|
2012-07-15 08:29:06 -04:00
|
|
|
def self.all_hooks_fire(data)
|
|
|
|
SystemHook.all.each do |sh|
|
|
|
|
sh.async_execute data
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-07-12 08:36:33 -04:00
|
|
|
end
|