about summary refs log tree commit homepage
path: root/lib/mongrel/rails.rb
diff options
context:
space:
mode:
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