diff options
Diffstat (limited to 'railties/environments/boot.rb')
-rw-r--r-- | railties/environments/boot.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb index 9715482cfc..b829644d1f 100644 --- a/railties/environments/boot.rb +++ b/railties/environments/boot.rb @@ -1,7 +1,10 @@ unless defined?(RAILS_ROOT) -require 'pathname' - root_path = Pathname.new(File.join(File.dirname(__FILE__), '..')) - RAILS_ROOT = root_path.cleanpath.to_s + root_path = File.join(File.dirname(__FILE__), '..') + unless RUBY_PLATFORM =~ /mswin32/ + require 'pathname' + root_path = Pathname.new(root_path).cleanpath.to_s + end + RAILS_ROOT = root_path end if File.directory?("#{RAILS_ROOT}/vendor/rails") |