From baf75d7e0b373cf69beace24d356df428c28f922 Mon Sep 17 00:00:00 2001 From: Chris Cherry Date: Thu, 2 Oct 2008 00:01:50 -0700 Subject: [PATCH] Fix ability to mount rails at a prefix, it was using a deprecated method of setting relative_url_root --- railties/lib/rails/mongrel_server/commands.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/railties/lib/rails/mongrel_server/commands.rb b/railties/lib/rails/mongrel_server/commands.rb index 0a92f41..2da4704 100644 --- a/railties/lib/rails/mongrel_server/commands.rb +++ b/railties/lib/rails/mongrel_server/commands.rb @@ -44,7 +44,7 @@ module Rails env_location = "#{defaults[:cwd]}/config/environment" require env_location - ActionController::AbstractRequest.relative_url_root = defaults[:prefix] + ActionController::Base.relative_url_root = defaults[:prefix] uri prefix, :handler => Rails::MongrelServer::RailsHandler.new end end -- 1.5.6.4