discourse/config/initializers/099-unicorn.rb

8 lines
174 B
Ruby
Raw Normal View History

require_dependency 'scheduler/defer'
if defined? Unicorn::HttpServer
ObjectSpace.each_object(Unicorn::HttpServer) do |s|
s.extend(Scheduler::Defer::Unicorn)
end
end