diff options
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r-- | lib/rainbows/http_server.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 7935105..0d34d40 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -5,16 +5,14 @@ module Rainbows class HttpServer < ::Unicorn::HttpServer include Rainbows - @@instance = nil - class << self def setup(block) - @@instance.instance_eval(&block) + G.server.instance_eval(&block) end end def initialize(app, options) - @@instance = self + G.server = self rv = super(app, options) defined?(@use) or use(:Base) @worker_connections ||= MODEL_WORKER_CONNECTIONS[@use] |