Commit a231b1b932814d597d9df5752abd23cf22d4ce0d
1 parent
36b6acfc
Exists in
master
and in
29 other branches
Support both Debian stable and unstable/testing
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/boot.rb
... | ... | @@ -108,7 +108,7 @@ end |
108 | 108 | # yeah, I know, I shouldn't change this file. But ... |
109 | 109 | def install_debian_rails |
110 | 110 | local_rails = File.dirname(__FILE__) + '/../vendor/rails' |
111 | - debian_rails = '/usr/share/rails-ruby1.8' | |
111 | + debian_rails = ['/usr/share/rails-ruby1.8', '/usr/lib/ruby/vendor_ruby/rails'].find { |d| File.exists?(d) } | |
112 | 112 | if !File.exist?(local_rails) && File.exists?(debian_rails) |
113 | 113 | puts "I: Installing Debian-installed Rails from /usr/share/rails into vendor/rails." |
114 | 114 | recommended_rails_version = Rails::GemBoot.gem_version | ... | ... |