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

Ticket #4045: make_rails_root_absolute.diff

File make_rails_root_absolute.diff, 440 bytes (added by Dee.Zsombor@gmail.com, 3 years ago)
  • railties/environments/boot.rb

    old new  
    66    require 'pathname' 
    77    root_path = Pathname.new(root_path).cleanpath(true).to_s 
    88  end 
    9   RAILS_ROOT = root_path 
     9  RAILS_ROOT = File.expand_path(root_path) 
    1010end 
    1111 
    1212if File.directory?("#{RAILS_ROOT}/vendor/rails")