system_hook_worker.rb 170 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 class SystemHookWorker include Sidekiq::Worker sidekiq_options queue: :system_hook def perform(hook_id, data) SystemHook.find(hook_id).execute data end end