1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove trailing '/' from RAILS_ROOT

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Nicholas Seckar 2005-10-18 14:08:54 +00:00
parent 7d8ecad127
commit 86bdbc3a62
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
* Remove trailing '/' from RAILS_ROOT [Nicholas Seckar]
*0.14.0* (October 16th, 2005)
* Moved generator folder from RAILS_ROOT/generators to RAILS_ROOT/lib/generators [Tobias Luetke]

View file

@ -1,7 +1,7 @@
unless defined?(RAILS_ROOT)
require 'pathname'
root_path = Pathname.new(File.join(File.dirname(__FILE__), '..'))
RAILS_ROOT = root_path.cleanpath.to_s + '/'
RAILS_ROOT = root_path.cleanpath.to_s
end
if File.directory?("#{RAILS_ROOT}/vendor/rails")