summary refs log tree commit homepage
path: root/lib/rainbows/max_body.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-05 17:06:20 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-06 07:17:19 +0000
commit6bde32081338ce8075854f4c47ce8ca5347df919 (patch)
tree71759032be458838eb33f7951172e8572aec4b6d /lib/rainbows/max_body.rb
parentd6e4975937a9590f48dc39b1a4aefa9d62f34616 (diff)
Code organization is hard :<
Diffstat (limited to 'lib/rainbows/max_body.rb')
-rw-r--r--lib/rainbows/max_body.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/max_body.rb b/lib/rainbows/max_body.rb
index 878b04d..808f762 100644
--- a/lib/rainbows/max_body.rb
+++ b/lib/rainbows/max_body.rb
@@ -52,7 +52,7 @@ class Rainbows::MaxBody
   # if it's reconfigured
   def self.setup # :nodoc:
     Rainbows.max_bytes or return
-    case Rainbows::G.server.use
+    case Rainbows.server.use
     when :Rev, :Coolio, :EventMachine, :NeverBlock,
          :RevThreadSpawn, :RevThreadPool,
          :CoolioThreadSpawn, :CoolioThreadPool
@@ -60,7 +60,7 @@ class Rainbows::MaxBody
     end
 
     # force ourselves to the outermost middleware layer
-    Rainbows::G.server.app = self.new(Rainbows::G.server.app)
+    Rainbows.server.app = self.new(Rainbows.server.app)
   end
 
   # Rack response returned when there's an error