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