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