public
Fork of rails/rails
Description: Ruby on Rails - forked for implementing I18n patch
Homepage: http://rubyonrails.org
Clone URL: git://github.com/svenfuchs/rails.git
Don't clean RAILS_ROOT on windows


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2685 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
jamis (author)
Wed Oct 19 06:47:45 -0700 2005
commit  fbae9456dce9a34080575c44ae9a2a212844ba8b
tree    3680e419dab5287a3744791389f8a0cf09549295
parent  83dc37b91057cc96f35c0b55b6e79a76072b2ab5
...
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
0
@@ -1,3 +1,8 @@
0
+*SVN*
0
+
0
+* Don't clean RAILS_ROOT on windows
0
+
0
+
0
 *0.14.1* (October 19th, 2005)
0
 
0
 * Remove trailing '/' from RAILS_ROOT [Nicholas Seckar]
...
1
2
3
4
 
 
 
 
 
 
5
6
7
...
1
 
 
 
2
3
4
5
6
7
8
9
10
0
@@ -1,7 +1,10 @@
0
 unless defined?(RAILS_ROOT)
0
-require 'pathname'
0
- root_path = Pathname.new(File.join(File.dirname(__FILE__), '..'))
0
- RAILS_ROOT = root_path.cleanpath.to_s
0
+ root_path = File.join(File.dirname(__FILE__), '..')
0
+ unless RUBY_PLATFORM =~ /mswin32/
0
+ require 'pathname'
0
+ root_path = Pathname.new(root_path).cleanpath.to_s
0
+ end
0
+ RAILS_ROOT = root_path
0
 end
0
 
0
 if File.directory?("#{RAILS_ROOT}/vendor/rails")

Comments

    No one has commented yet.