Sha256: 0adba81ae88145d8faf2052f1683ed813c7aa78868dec4e8f76f0afbc882406a
Contents?: true
Size: 395 Bytes
Versions: 4
Compression:
Stored size: 395 Bytes
Contents
require 'sidekiq' module Outboxable class Worker include ::Sidekiq::Job def perform(outbox_id) Outboxable::PublishingManager.publish(resource: Outbox.find(outbox_id)) if Outboxable.configuration.orm == :activerecord Outboxable::PublishingManager.publish(resource: Outbox.find_by!(idempotency_key: outbox_id)) if Outboxable.configuration.orm == :mongoid end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
outboxable-1.0.6 | lib/outboxable/worker.rb |
outboxable-1.0.5 | lib/outboxable/worker.rb |
outboxable-1.0.4 | lib/outboxable/worker.rb |
outboxable-1.0.3 | lib/outboxable/worker.rb |