From 2d9d60e9a2f62339a033ab53ddfd95e71d00838f Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 8 Apr 2015 15:24:17 +1000 Subject: [PATCH] we don't need oobgc in ruby 2.2, disable for now --- config/initializers/99-unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/99-unicorn.rb b/config/initializers/99-unicorn.rb index 072283c07..43e8cb75f 100644 --- a/config/initializers/99-unicorn.rb +++ b/config/initializers/99-unicorn.rb @@ -5,7 +5,7 @@ if defined? Unicorn::HttpServer s.extend(Scheduler::Defer::Unicorn) end - if ENV['UNICORN_ENABLE_OOBGC'] == '1' + if ENV['UNICORN_ENABLE_OOBGC'] == '1' && RUBY_VERSION < "2.2.0" require 'middleware/unicorn_oobgc' Middleware::UnicornOobgc.init end