From c6f927ffc3529c1356212187c70c7c945aa004a7 Mon Sep 17 00:00:00 2001 From: Nicolas Chuche Date: Sun, 14 Sep 2008 15:36:09 +0000 Subject: [PATCH] r18556@gaspard (orig r1820): jplang | 2008-09-13 20:32:37 +0200 Expand RAILS_ROOT path on startup (#1892). git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1849 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/boot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/boot.rb b/config/boot.rb index cd21fb9ea..c20cf35f2 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,7 +1,7 @@ # Don't change this file! # Configure your app in config/environment.rb and config/environments/*.rb -RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) +RAILS_ROOT = File.expand_path("#{File.dirname(__FILE__)}/..") unless defined?(RAILS_ROOT) module Rails class << self