mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
2771a0ad96
Workers are the user's classes, the threads are now called processors. Add secret sauce to make Rails config much easier. Use a railtie to auto-add app/workers to the autoload path.
5 lines
178 B
Ruby
5 lines
178 B
Ruby
module Sidekiq
|
|
class Rails < ::Rails::Engine
|
|
config.autoload_paths << File.expand_path("#{config.root}/app/workers") if File.exist?("#{config.root}/app/workers")
|
|
end
|
|
end
|