diff options
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r-- | lib/rainbows/http_server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 429539c..33bb96c 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -82,10 +82,10 @@ class Rainbows::HttpServer < Unicorn::HttpServer end def use=(mod) - @use = mod.to_s.split(/::/)[-1].to_sym + @use = mod.to_s.split('::')[-1].to_sym new_defaults = { 'rainbows.model' => @use, - 'rack.multithread' => !!(mod.to_s =~ /Thread/), + 'rack.multithread' => mod.to_s.include?('Thread'), 'rainbows.autochunk' => [:Coolio,:Rev,:Epoll,:XEpoll, :EventMachine,:NeverBlock].include?(@use), } |