Sha256: 233317ca284d06e301a1c66e16db78f7cbf99de96913f8d23e211ac1c28fc9a9
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true module DelayedJobWorkerPool module Application extend self def load require(base_application_filename) rescue LoadError raise "Could not find Rails initialization file #{full_application_filename}. " \ 'Make sure delayed_job_worker_pool is run from the Rails root directory.' end private def base_application_filename "#{Dir.pwd}/config/environment" end def full_application_filename "#{base_application_filename}.rb" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
delayed_job_worker_pool-1.0.0 | lib/delayed_job_worker_pool/application.rb |
delayed_job_worker_pool-0.3.0 | lib/delayed_job_worker_pool/application.rb |