diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-14 17:51:48 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-14 17:51:48 -0800 |
commit | 83dc65dcc16047edcbc65d077097da83b5caf2d6 (patch) | |
tree | 3d43c20bd09accbde1c7faedba1b6c739c74a426 | |
parent | 8057c9584af44da07fdd7a8b37ac08cc79d9773c (diff) | |
download | unicorn-83dc65dcc16047edcbc65d077097da83b5caf2d6.tar.gz |
It makes life easier for people writing config.ru files for use with Rails.
-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 |