about summary refs log tree commit homepage
path: root/lib/mongrel/rails.rb
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-07-14 16:13:51 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-07-14 16:13:51 +0000
commitc05069479d33351b9db1a4b7393e71c608788d05 (patch)
treeb8283e91b5d30a2f9ffcfab83ffd741d3c8620da /lib/mongrel/rails.rb
parentab3c8082de82e6fc96838d444be06432620743ab (diff)
downloadunicorn-c05069479d33351b9db1a4b7393e71c608788d05.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@293 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel/rails.rb')
-rw-r--r--lib/mongrel/rails.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mongrel/rails.rb b/lib/mongrel/rails.rb
index 859013b..1e4cb42 100644
--- a/lib/mongrel/rails.rb
+++ b/lib/mongrel/rails.rb
@@ -136,8 +136,6 @@ module Mongrel
         ops[:environment] ||= "development"
         ops[:docroot] ||= "public"
         ops[:mime] ||= {}
-        ops[:prefix] ||= "/"
-
 
         $orig_dollar_quote = $".clone
         ENV['RAILS_ENV'] = ops[:environment]
@@ -150,7 +148,7 @@ module Mongrel
           log "[RAILS] ActionController::Base.allow_concurrency is true.  Wow, you're very brave."
         end
 
-        ActionController::AbstractRequest.relative_url_root = ops[:prefix]
+        ActionController::AbstractRequest.relative_url_root = ops[:prefix] if ops[:prefix]
 
         @rails_handler = RailsHandler.new(ops[:docroot], ops[:mime])
       end