Skip to content
This repository
Browse code

Remove RAILS_ROOT from webrick_server docs.

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information...
commit ee04aea3ec1461368a72db525b325846e29b0045 1 parent f8eddcc
authored April 12, 2010 wycats committed April 12, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  railties/lib/rails/webrick_server.rb
4  railties/lib/rails/webrick_server.rb
@@ -63,8 +63,8 @@ def self.dispatch(options = {})
63 63
   def initialize(server, options) #:nodoc:
64 64
     @server_options = options
65 65
     @file_handler = WEBrick::HTTPServlet::FileHandler.new(server, options[:server_root])
66  
-    # Change to the RAILS_ROOT, since Webrick::Daemon.start does a Dir::cwd("/")
67  
-    # OPTIONS['working_directory'] is an absolute path of the RAILS_ROOT, set in railties/lib/commands/servers/webrick.rb
  66
+    # Change to the Rails.root, since Webrick::Daemon.start does a Dir::cwd("/")
  67
+    # OPTIONS['working_directory'] is an absolute path of the Rails.root, set in railties/lib/commands/servers/webrick.rb
68 68
     Dir.chdir(OPTIONS['working_directory']) if defined?(OPTIONS) && File.directory?(OPTIONS['working_directory'])
69 69
     super
70 70
   end

0 notes on commit ee04aea

Please sign in to comment.
Something went wrong with that request. Please try again.