Permalink
Browse files

Use File.expand_path when computing RAILS_ROOT to handle symlinked co…

…pies of the plugin in vendor/
  • Loading branch information...
sstephenson committed Feb 12, 2009
1 parent e3603df commit d58d9dcdd28f58774ef763d8b4387d9f4832132e
Showing with 1 addition and 1 deletion.
  1. +1 −1 install.rb
View
@@ -1,7 +1,7 @@
require "fileutils"
include FileUtils::Verbose
-RAILS_ROOT = File.join(File.dirname(__FILE__), "..", "..", "..") unless defined?(RAILS_ROOT)
+RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..")) unless defined?(RAILS_ROOT)
mkdir_p File.join(RAILS_ROOT, "vendor", "sprockets")
mkdir_p File.join(RAILS_ROOT, "app", "javascripts")

0 comments on commit d58d9dc

Please sign in to comment.