Sha256: b1ddfc85776a20d85695fec305c600e62a1c703ff985e28daf440ed1fbbfe274

Contents?: true

Size: 402 Bytes

Versions: 17

Compression:

Stored size: 402 Bytes

Contents

module CanvasSync::JobUniqueness
  module Compat
    def self.load_compat(name)
      name = name.to_s
      begin
        require name
      rescue LoadError
      end

      if name.classify.safe_constantize
        require_relative "./compat/#{name}"
        "#{self.name}::#{name.classify}".constantize.configure
      end
    end

    load_compat(:active_job)
    load_compat(:sidekiq)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.8 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.6 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.5 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.4 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.3 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.2 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.1 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/job_uniqueness/compat.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/job_uniqueness/compat.rb