Skip to content

Commit

Permalink
Remove Dir.chdir in the Webrick DispatchServlet#initialize method. Fi…
Browse files Browse the repository at this point in the history
…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
technoweenie committed Sep 2, 2006
1 parent 7aa9eed commit 03de0cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
1 change: 0 additions & 1 deletion railties/lib/webrick_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 03de0cf

Please sign in to comment.