diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dashing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dashing.rb b/lib/dashing.rb index 34e2cb5..dc62395 100644 --- a/lib/dashing.rb +++ b/lib/dashing.rb @@ -141,5 +141,5 @@ Dir[File.join(settings.root, 'lib', '**', '*.rb')].each {|file| require file } {}.to_json # Forces your json codec to initialize (in the event that it is lazily loaded). Does this before job threads start. job_path = ENV["JOB_PATH"] || 'jobs' -files = Dir[File.join(settings.root, job_path, '/*.rb')] +files = Dir[File.join(settings.root, job_path, '**', '/*.rb')] files.each { |job| require(job) } |