Sha256: b2b877edfead905d75a19bcd04d1c7a1db4075b3735da440345fd361051eb811

Contents?: true

Size: 394 Bytes

Versions: 6

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  #
  # Module Reflectable provides a method to notify subscribers
  #
  # @author Mikael Henriksson <mikael@mhenrixon.com>
  #
  module Reflectable
    def reflect(name, *args)
      SidekiqUniqueJobs.reflections.dispatch(name, *args)
      nil
    rescue UniqueJobsError => ex
      SidekiqUniqueJobs.logger.error(ex)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-7.1.6 lib/sidekiq_unique_jobs/reflectable.rb
sidekiq-unique-jobs-7.1.5 lib/sidekiq_unique_jobs/reflectable.rb
sidekiq-unique-jobs-7.1.3 lib/sidekiq_unique_jobs/reflectable.rb
sidekiq-unique-jobs-7.1.2 lib/sidekiq_unique_jobs/reflectable.rb
sidekiq-unique-jobs-7.1.1 lib/sidekiq_unique_jobs/reflectable.rb
sidekiq-unique-jobs-7.1.0 lib/sidekiq_unique_jobs/reflectable.rb