From b7801ff71e80e3d8fb06f93b7cbb6d6916657114 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Sat, 15 Oct 2005 22:55:52 +0000 Subject: Shorten long line git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/environments/boot.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'railties/environments/boot.rb') diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb index bc075ed09b..9e35fb6c15 100644 --- a/railties/environments/boot.rb +++ b/railties/environments/boot.rb @@ -1,5 +1,8 @@ +unless defined?(RAILS_ROOT) require 'pathname' -RAILS_ROOT = Pathname.new(File.join(File.dirname(__FILE__), '..')).cleanpath.to_s + '/' unless defined?(RAILS_ROOT) + root_path = Pathname.new(File.join(File.dirname(__FILE__), '..')) + RAILS_ROOT = root_path.cleanpath.to_s + '/' +end if File.directory?("#{RAILS_ROOT}/vendor/rails") require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" -- cgit v1.2.3