diff options
-rwxr-xr-x | bin/unicorn_rails | 1 | ||||
-rw-r--r-- | lib/unicorn/app/old_rails.rb | 2 |
2 files changed, 2 insertions, 1 deletions
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 |