提交 2f6e8099 编写于 作者: O Oscar Del Ben

Add missing requires for rails/commands/server

上级 f2020884
......@@ -224,7 +224,18 @@ when 'server'
}
</ruby>
This file will change into the root of the directory (a path two directories back from +APP_PATH+ which points at +config/application.rb+), but only if the +config.ru+ file isn't found. This then requires +rails/commands/server+ which requires +action_dispatch+ and sets up the +Rails::Server+ class.
This file will change into the root of the directory (a path two directories back from +APP_PATH+ which points at +config/application.rb+), but only if the +config.ru+ file isn't found. This then requires +rails/commands/server+ which sets up the +Rails::Server+ class.
<ruby>
require 'fileutils'
require 'optparse'
require 'action_dispatch'
module Rails
class Server < ::Rack::Server
</ruby>
`fileutils` and `optparse` are standard Ruby libraries which provide helper functions for working with files and parsing options.
h4. +actionpack/lib/action_dispatch.rb+
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册