Sha256: 7bf5cc0b8245fccb32104ecc95eced1596042433994557ebb4be2e02afde620f

Contents?: true

Size: 405 Bytes

Versions: 12

Compression:

Stored size: 405 Bytes

Contents

require "delayed_job_active_record"
require "delayed_job_web"

Cardio.config.tap do |cc|
  Delayed::Worker.tap do |dw|
    dw.delay_jobs = cc.delaying
    dw.max_attempts = 1
    dw.destroy_failed_jobs = false
  end
end

Cardio.extend Cardio::DelayedJob

DelayedJobWeb.use Rack::Auth::Basic do |email, password|
  account = Card::Auth.authenticate email, password
  Card::Auth.admin? account&.left_id
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
card-mod-delayed_job-0.18.1 config/late/delayed_job_config.rb
card-mod-delayed_job-0.18.0 config/late/delayed_job_config.rb
card-mod-delayed_job-0.17.0 config/late/delayed_job_config.rb
card-mod-delayed_job-0.16.0 config/late/delayed_job_config.rb
card-mod-delayed_job-0.15.6 config/late/delayed_job_config.rb
card-mod-delayed_job-0.15.5 config/late/delayed_job_config.rb
card-mod-delayed_job-0.15.4 config/late/delayed_job_config.rb
card-mod-delayed_job-0.15.3 config/late/delayed_job_config.rb
card-mod-delayed_job-0.15.2.pre1 config/late/delayed_job_config.rb
card-mod-delayed_job-0.15.1.1 config/late/delayed_job_config.rb
card-mod-delayed_job-0.15.1 config/late/delayed_job_config.rb
card-mod-delayed_job-0.15.0 init/late/delayed_job_config.rb