Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4899

Show
Ignore:
Timestamp:
09/02/06 15:50:52 (2 years ago)
Author:
rick
Message:

Remove Dir.chdir in the Webrick DispatchServlet#initialize method. Fix bad path errors when trying to load config/routes.rb. [Rick Olson]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r4885 r4899  
    11*SVN* 
     2 
     3* Remove Dir.chdir in the Webrick DispatchServlet#initialize method.  Fix bad path errors when trying to load config/routes.rb.  [Rick Olson] 
    24 
    35* Tighten rescue clauses.  #5985 [james@grayproductions.net] 
  • trunk/railties/lib/webrick_server.rb

    r4841 r4899  
    6767    @server_options = options 
    6868    @file_handler = WEBrick::HTTPServlet::FileHandler.new(server, options[:server_root]) 
    69     Dir.chdir("#{RAILS_ROOT}/public") if defined?(RAILS_ROOT) && File.directory?("#{RAILS_ROOT}/public") 
    7069    super 
    7170  end