Permalink
Browse files

Remove RAILS_ROOT from webrick_server docs.

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information...
1 parent f8eddcc commit ee04aea3ec1461368a72db525b325846e29b0045 stlruby@googlegroups.com committed with wycats Apr 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/webrick_server.rb
@@ -63,8 +63,8 @@ def self.dispatch(options = {})
def initialize(server, options) #:nodoc:
@server_options = options
@file_handler = WEBrick::HTTPServlet::FileHandler.new(server, options[:server_root])
- # Change to the RAILS_ROOT, since Webrick::Daemon.start does a Dir::cwd("/")
- # OPTIONS['working_directory'] is an absolute path of the RAILS_ROOT, set in railties/lib/commands/servers/webrick.rb
+ # Change to the Rails.root, since Webrick::Daemon.start does a Dir::cwd("/")
+ # OPTIONS['working_directory'] is an absolute path of the Rails.root, set in railties/lib/commands/servers/webrick.rb
Dir.chdir(OPTIONS['working_directory']) if defined?(OPTIONS) && File.directory?(OPTIONS['working_directory'])
super
end

0 comments on commit ee04aea

Please sign in to comment.