From 723ca7b440b1cf161d999aedcfadba8498adaa7c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Feb 2011 08:46:40 +0000 Subject: http_server: kill a warning Ugh, I need to think of a way to clean this up... --- lib/rainbows/http_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/http_server.rb') diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 236c379..71ed192 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -43,7 +43,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer def ready_pipe=(v) # hacky hook got force Rainbows! to load modules only in workers - if @master_pid && @master_pid == Process.ppid + if defined?(@master_pid) && @master_pid == Process.ppid extend(Rainbows.const_get(@use)) end super -- cgit v1.2.3-24-ge0c7