diff options
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r-- | lib/rainbows/http_server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |