From 9d9e622bb1554921d750f8298366ee592adcbbb5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Oct 2009 17:50:04 -0700 Subject: rainbows/base: cleanup constant include This was breaking badly under 1.8 since Revactor couldn't be included (the constant is listed once it is declared as an autoload). --- lib/rainbows/base.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/rainbows/base.rb') 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 -- cgit v1.2.3-24-ge0c7