lib/dashing.rb in dashing-1.3.1 vs lib/dashing.rb in dashing-1.3.2

- old
+ new

@@ -152,9 +152,14 @@ default_mime_type = engines.first.default_mime_type default_mime_type.nil? || default_mime_type == 'text/html' end end +settings_file = File.join(settings.root, 'config/settings.rb') +if (File.exists?(settings_file)) + require settings_file +end + 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')]