From 4cecac01518c6d48f749a34d4f56842429c2ccbc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 15 Aug 2009 02:43:49 -0700 Subject: Remove explicit requires for Rack things Rack is autoload-based and so are we. --- bin/unicorn | 1 - bin/unicorn_rails | 1 - 2 files changed, 2 deletions(-) (limited to 'bin') diff --git a/bin/unicorn b/bin/unicorn index cfc81da..8847e81 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -120,7 +120,6 @@ require 'pp' if $DEBUG app = lambda do || # require Rack as late as possible in case $LOAD_PATH is modified # in config.ru or command-line - require 'rack' inner_app = case config when /\.ru$/ raw = File.open(config, "rb") { |fp| fp.sysread(fp.stat.size) } diff --git a/bin/unicorn_rails b/bin/unicorn_rails index a0035f4..1fbc0e2 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -140,7 +140,6 @@ app = lambda do || end if old_rails - require 'rack' require 'unicorn/app/old_rails' Unicorn::App::OldRails.new else -- cgit v1.2.3-24-ge0c7