]> source.dussan.org Git - redmine.git/commitdiff
r18556@gaspard (orig r1820): jplang | 2008-09-13 20:32:37 +0200
authorNicolas Chuche <nicolas.chuche@barna.be>
Sun, 14 Sep 2008 15:36:09 +0000 (15:36 +0000)
committerNicolas Chuche <nicolas.chuche@barna.be>
Sun, 14 Sep 2008 15:36:09 +0000 (15:36 +0000)
 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

index cd21fb9eab7e9d91985307915f144edd2a8c8b52..c20cf35f2e05fc6645af2a52e8d21a97936e6c6b 100644 (file)
@@ -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