diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-19 13:27:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-19 13:27:51 +0000 |
commit | b019875819ba6cb266171ceffe9e302bfd083a45 (patch) | |
tree | b2ade30e4285e4389eeabefc1be48b487d40fd9b /config/boot.rb | |
parent | 8ec1231dbc56a69608abd53cf1372ba5b0cda2a4 (diff) | |
download | redmine-b019875819ba6cb266171ceffe9e302bfd083a45.tar.gz redmine-b019875819ba6cb266171ceffe9e302bfd083a45.zip |
Upgrade to Rails 2.3.14 with Prototype 1.7 (#9609).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7844 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/boot.rb')
-rw-r--r-- | config/boot.rb | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/config/boot.rb b/config/boot.rb index 12bee3d13..6ca837c82 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -67,8 +67,12 @@ module Rails gem 'rails' end rescue Gem::LoadError => load_error - $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.) - exit 1 + if load_error.message =~ /Could not find RubyGem rails/ + STDERR.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.) + exit 1 + else + raise + end end class << self @@ -111,17 +115,5 @@ module Rails end end -# TODO: Workaround for #7013 to be removed for 1.2.0 -# Loads i18n 0.4.2 before Rails loads any more recent gem -# 0.5.0 is not compatible with the old interpolation syntax -# Plugins will have to migrate to the new syntax for 1.2.0 -require 'rubygems' -begin - gem 'i18n', '0.4.2' -rescue Gem::LoadError => load_error - $stderr.puts %(Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`) - exit 1 -end - # All that for this: Rails.boot! |