Sha256: f42255e6d3813ef3fdf625a7a309b8414656ed21479856fbdf5b8027b1313014
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 Bytes
Contents
require "rails" module ActiveJob module Cron class Railtie < Rails::Railtie config.after_initialize do ActiveJob::Cron.config.logger = Rails.logger Dir.glob(Rails.root + "app/jobs/*_job*.rb").each do |c| require_dependency(c) end if ActiveJob::Cron.config.preload_jobs ActiveJob::Cron.run! end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_job-cron-0.1.0 | lib/active_job/cron/railtie.rb |