This commit is contained in:
Dmitriy Zaporozhets 2013-01-09 08:14:05 +03:00
parent 7bfd38eaa9
commit c7bb3a1f72
14 changed files with 75 additions and 94 deletions

View file

@ -1,7 +1,9 @@
class SystemHookWorker
@queue = :system_hook
include Sidekiq::Worker
def self.perform(hook_id, data)
sidekiq_options queue: :system_hook
def perform(hook_id, data)
SystemHook.find(hook_id).execute data
end
end