Permalink
Browse files

Shorten long line

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent bfbf6bb commit b7801ff71e80e3d8fb06f93b7cbb6d6916657114 @seckar seckar committed Oct 15, 2005
Showing with 4 additions and 1 deletion.
  1. +4 −1 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"

0 comments on commit b7801ff

Please sign in to comment.