Sha256: 8722a54db6198025f5439a6b9996f247dd833024d23c92838dc4bc0fe2166a0e
Contents?: true
Size: 445 Bytes
Versions: 7
Compression:
Stored size: 445 Bytes
Contents
module Reactor module Workers class DatabaseSubscriberWorker include Sidekiq::Worker def perform(model_id, data) return :__perform_aborted__ unless should_perform? Reactor::Subscriber.fire(model_id, data) end def should_perform? if Reactor.test_mode? Reactor.test_mode_subscriber_enabled? Reactor::Subscriber else true end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems