system_hook.rb 223 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 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