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

Ticket #6354: rails_root_path.patch

File rails_root_path.patch, 492 bytes (added by ward, 2 years ago)

patch for the problem

  • rails-1.1.6/environments/boot.rb

    old new  
    11# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb 
    22 
    33unless defined?(RAILS_ROOT) 
    4   root_path = File.join(File.dirname(__FILE__), '..'
     4  root_path = File.expand_path(File.join(File.dirname(__FILE__), '..')
    55 
    66  unless RUBY_PLATFORM =~ /mswin32/ 
    77    require 'pathname'