From: Jean-Philippe Lang Date: Sat, 13 Sep 2008 18:32:37 +0000 (+0000) Subject: Expand RAILS_ROOT path on startup (#1892). X-Git-Tag: 0.8.0-RC1~242 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1f1fd9e034a83ac6ffdd3e8cbda86b92a9326d8b;p=redmine.git Expand RAILS_ROOT path on startup (#1892). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1820 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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