Fix deprecated ActionController::Base.relative_url_root call in mongrel command

Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
Chris Cherry
2008-10-05 17:11:18 -05:00
committed by Joshua Peek
parent a2932784bb
commit 1c75b4fd42

View File

@@ -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