about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-05 17:50:04 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-05 17:50:04 -0700
commit9d9e622bb1554921d750f8298366ee592adcbbb5 (patch)
tree9a68422bb64d565f2d3e4dcc7cbea4535792b1ce /lib
parent11198b5154758322054b8e5ca572748fcad4d118 (diff)
downloadrainbows-9d9e622bb1554921d750f8298366ee592adcbbb5.tar.gz
This was breaking badly under 1.8 since Revactor couldn't be
included (the constant is listed once it is declared as an
autoload).
Diffstat (limited to 'lib')
-rw-r--r--lib/rainbows/base.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb
index 0e5843d..07fb584 100644
--- a/lib/rainbows/base.rb
+++ b/lib/rainbows/base.rb
@@ -60,9 +60,7 @@ module Rainbows
     end
 
     def self.included(klass)
-      HttpServer.constants.each do |x|
-        klass.const_set(x, HttpServer.const_get(x))
-      end
+      klass.const_set :LISTENERS, HttpServer::LISTENERS
     end
 
   end