From 83dc65dcc16047edcbc65d077097da83b5caf2d6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Nov 2009 17:51:48 -0800 Subject: old_rails: autoload Static It makes life easier for people writing config.ru files for use with Rails. --- bin/unicorn_rails | 1 - lib/unicorn/app/old_rails.rb | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/unicorn_rails b/bin/unicorn_rails index 5ed054d..36ed660 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -171,7 +171,6 @@ app = lambda do || $stderr.puts "LogTailer not available for Rails < 2.3" unless daemonize $stderr.puts "Debugger not available" if $DEBUG map(map_path) do - require 'unicorn/app/old_rails/static' use Unicorn::App::OldRails::Static run inner_app end diff --git a/lib/unicorn/app/old_rails.rb b/lib/unicorn/app/old_rails.rb index ba1260a..0633db3 100644 --- a/lib/unicorn/app/old_rails.rb +++ b/lib/unicorn/app/old_rails.rb @@ -13,6 +13,8 @@ module Unicorn; module App; end; end # Implements a handler that can run Rails. class Unicorn::App::OldRails + autoload :Static, "unicorn/app/old_rails/static" + def call(env) cgi = Unicorn::CGIWrapper.new(env) begin -- cgit v1.2.3-24-ge0c7