From acd63226fe8481feee1271b26a16baca56d05331 Mon Sep 17 00:00:00 2001 From: zedshaw Date: Tue, 28 Mar 2006 02:56:33 +0000 Subject: [PATCH] Damn trotter and his bum patches. :-) git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@128 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel/rails.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mongrel/rails.rb b/lib/mongrel/rails.rb index b0d3ba25..66db6914 100644 --- a/lib/mongrel/rails.rb +++ b/lib/mongrel/rails.rb @@ -103,6 +103,7 @@ module Mongrel # # * :docroot => The public dir to serve from. # * :environment => Rails environment to use. + # * :cwd => The change to working directory # # And understands the following optional settings: # @@ -131,7 +132,7 @@ module Mongrel $orig_dollar_quote = $".clone ENV['RAILS_ENV'] = ops[:environment] - require '#{ops[:docroot]}/config/environment' + require "#{ops[:cwd]}/config/environment" require 'dispatcher' require 'mongrel/rails'