Skip to content

Commit

Permalink
RAILS_ROOT should work in any cases
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Jan 13, 2010
1 parent 2f28b47 commit a1bfaa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'fileutils'

RAILS_ROOT = File.expand_path( File.join(File.dirname(__FILE__), '../../../') )
unless defined?(RAILS_ROOT)
RAILS_ROOT = File.expand_path( File.join(File.dirname(__FILE__), '../../../') )
end

['images', 'stylesheets', 'javascripts'].each do |folder|
if folder == 'images'
Expand Down

0 comments on commit a1bfaa7

Please sign in to comment.