aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/webrick_server.rb
diff options
context:
space:
mode:
authorstlruby@googlegroups.com <stlruby@googlegroups.com>2010-04-12 19:45:12 -0500
committerwycats <wycats@gmail.com>2010-04-12 21:28:39 -0700
commitee04aea3ec1461368a72db525b325846e29b0045 (patch)
tree34c8a47242b888f47a7be6ffb1ad9647012c19b4 /railties/lib/rails/webrick_server.rb
parentf8eddcc7351c899088353aed21ee6e14ddb23ccf (diff)
downloadrails-ee04aea3ec1461368a72db525b325846e29b0045.tar.gz
rails-ee04aea3ec1461368a72db525b325846e29b0045.tar.bz2
rails-ee04aea3ec1461368a72db525b325846e29b0045.zip
Remove RAILS_ROOT from webrick_server docs.
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'railties/lib/rails/webrick_server.rb')
-rw-r--r--railties/lib/rails/webrick_server.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/webrick_server.rb b/railties/lib/rails/webrick_server.rb
index 2f60151b22..f3b74c28d3 100644
--- a/railties/lib/rails/webrick_server.rb
+++ b/railties/lib/rails/webrick_server.rb
@@ -63,8 +63,8 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
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