Commit d8e9c951a5f70850a89bf5dc7a911580473b338a
1 parent
5937f2d0
Exists in
master
and in
29 other branches
Fixed rails checking for RVM systems
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/boot.rb
... | ... | @@ -109,7 +109,7 @@ end |
109 | 109 | def install_debian_rails |
110 | 110 | local_rails = File.dirname(__FILE__) + '/../vendor/rails' |
111 | 111 | debian_rails = ['/usr/share/rails-ruby1.8', '/usr/lib/ruby/vendor_ruby/rails'].find { |d| File.exists?(d) } |
112 | - if !File.exist?(local_rails) && File.exists?(debian_rails) | |
112 | + if !File.exist?(local_rails) && debian_rails && File.exists?(debian_rails) | |
113 | 113 | File.delete(local_rails) if File.symlink?(local_rails) # remove dangling symlink |
114 | 114 | puts "I: Installing Debian-installed Rails from /usr/share/rails into vendor/rails." |
115 | 115 | recommended_rails_version = Rails::GemBoot.gem_version | ... | ... |