discourse/config/initializers/099-unicorn.rb
2016-06-10 11:40:42 +08:00

7 lines
174 B
Ruby

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