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

Changeset 2685

Show
Ignore:
Timestamp:
10/19/05 13:47:45 (3 years ago)
Author:
minam
Message:

Don't clean RAILS_ROOT on windows

Files:

Legend:

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

    r2684 r2685  
     1*SVN* 
     2 
     3* Don't clean RAILS_ROOT on windows 
     4 
     5 
    16*0.14.1* (October 19th, 2005) 
    27 
  • trunk/railties/environments/boot.rb

    r2678 r2685  
    11unless defined?(RAILS_ROOT) 
    2 require 'pathname' 
    3   root_path = Pathname.new(File.join(File.dirname(__FILE__), '..')) 
    4   RAILS_ROOT = root_path.cleanpath.to_s 
     2  root_path = File.join(File.dirname(__FILE__), '..') 
     3  unless RUBY_PLATFORM =~ /mswin32/ 
     4    require 'pathname' 
     5    root_path = Pathname.new(root_path).cleanpath.to_s 
     6  end 
     7  RAILS_ROOT = root_path 
    58end 
    69