Sha256: e07af90f2d6f4e8523184c8c39eeea8d2f4f201f98f42bdaaaf3e85bfdb9f846
Contents?: true
Size: 394 Bytes
Versions: 15
Compression:
Stored size: 394 Bytes
Contents
# frozen_string_literal: true module SidekiqPublisher module Worker def self.included(base) base.include(Sidekiq::Worker) base.singleton_class.public_send(:alias_method, :sidekiq_client_push, :client_push) base.extend(ClassMethods) end module ClassMethods def client_push(item) SidekiqPublisher::Job.create_job!(item) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems