Skip to content
Browse files

Remove Dir.chdir in the Webrick DispatchServlet#initialize method. Fi…

…x bad path errors when trying to load config/routes.rb. [Rick Olson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 7aa9eed commit 03de0cfe7ab281eda70f2cedd09659752e765acf @technoweenie technoweenie committed Sep 2, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −0 railties/CHANGELOG
  2. +0 −1 railties/lib/webrick_server.rb
View
2 railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Remove Dir.chdir in the Webrick DispatchServlet#initialize method. Fix bad path errors when trying to load config/routes.rb. [Rick Olson]
+
* Tighten rescue clauses. #5985 [james@grayproductions.net]
* Cleaning up tests. [Kevin Clark, Jeremy Kemper]
View
1 railties/lib/webrick_server.rb
@@ -66,7 +66,6 @@ def self.dispatch(options = {})
def initialize(server, options) #:nodoc:
@server_options = options
@file_handler = WEBrick::HTTPServlet::FileHandler.new(server, options[:server_root])
- Dir.chdir("#{RAILS_ROOT}/public") if defined?(RAILS_ROOT) && File.directory?("#{RAILS_ROOT}/public")
super
end

0 comments on commit 03de0cf

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