diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-22 16:21:03 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-22 16:21:03 -0700 |
commit | 180485d49ea858f83ef2a28a9e07224aa514edc7 (patch) | |
tree | b4c649d2118c0010bf3876a49dadfe3e4cbc3f86 /lib/rainbows/rev | |
parent | 41145ed4d335718ac43aec9313b7571a12fe96ee (diff) | |
download | rainbows-180485d49ea858f83ef2a28a9e07224aa514edc7.tar.gz |
This simplifies and disambiguates most constant resolution issues as well as lowering our identation level. Hopefully this makes code easier to understand.
Diffstat (limited to 'lib/rainbows/rev')
-rw-r--r-- | lib/rainbows/rev/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/rev/core.rb b/lib/rainbows/rev/core.rb index 2273b24..abd7ca7 100644 --- a/lib/rainbows/rev/core.rb +++ b/lib/rainbows/rev/core.rb @@ -26,7 +26,7 @@ module Rainbows require 'rainbows/rev/sendfile' Rainbows::Rev::Client.__send__(:include, Rainbows::Rev::Sendfile) init_worker_process(worker) - mod = self.class.const_get(@use) + mod = Rainbows.const_get(@use) rloop = Server.const_set(:LOOP, ::Rev::Loop.default) Server.const_set(:MAX, @worker_connections) Server.const_set(:CL, mod.const_get(:Client)) |