diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-08-22 09:44:46 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-08-22 09:44:46 +0100 |
commit | 30e114c33a8b9890e2997b686b081c326dcb9ba2 (patch) | |
tree | edb335b919214873616845663ed31d28c074dabe /config/environment.rb | |
parent | 22aee5b911c4d1784a5ce7638fd01173b648a454 (diff) |
Ensure that recent Rails upgrade doesn't break compatibility with older versions of Rubygems (such as exist in Debian Lenny). Closes #145.
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb index 606472740..73cab9201 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -28,6 +28,12 @@ load "config.rb" load "format.rb" load "debug_helpers.rb" load "util.rb" +# Patch Rails::GemDependency to cope with older versions of rubygems, e.g. in Debian Lenny +# Restores override removed in https://github.com/rails/rails/commit/c20a4d18e36a13b5eea3155beba36bb582c0cc87 +# without effecting method behaviour +# and adds fallback gem call removed in https://github.com/rails/rails/commit/4c3725723f15fab0a424cb1318b82b460714b72f +require File.join(File.dirname(__FILE__), '../lib/old_rubygems_patch') + Rails::Initializer.run do |config| # Load intial mySociety config |