about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-04 01:03:54 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-04 01:06:27 -0800
commitb2f6932ffcdab271845a7feed908fbc6db69e6b7 (patch)
tree4d699b6e058f2a8a1faaa059b441553bba2bc295
parentc81ed9a7e417e15b3c3e0ac500af52841b3f8575 (diff)
downloadunicorn-b2f6932ffcdab271845a7feed908fbc6db69e6b7.tar.gz
Constant scoping appears to be a bit different under 1.9
-rw-r--r--lib/unicorn.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 396b8e3..0f2b597 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -3,7 +3,6 @@
 require 'fcntl'
 require 'unicorn/socket_helper'
 autoload :Rack, 'rack'
-autoload :Etc, 'etc'
 
 # Unicorn module containing all of the classes (include C extensions) for running
 # a Unicorn web server.  It contains a minimalist HTTP server with just enough
@@ -114,6 +113,8 @@ module Unicorn
     # for examples.
     class Worker < Struct.new(:nr, :tmp)
 
+      autoload :Etc, 'etc'
+
       # worker objects may be compared to just plain numbers
       def ==(other_nr)
         self.nr == other_nr