提交 1c75b4fd 编写于 作者: C Chris Cherry 提交者: Joshua Peek

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

Signed-off-by: NJoshua Peek <josh@joshpeek.com>
上级 a2932784
......@@ -44,7 +44,7 @@ def mount_rails(prefix)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册