summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-19 13:27:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-19 13:27:51 +0000
commitb019875819ba6cb266171ceffe9e302bfd083a45 (patch)
treeb2ade30e4285e4389eeabefc1be48b487d40fd9b /config
parent8ec1231dbc56a69608abd53cf1372ba5b0cda2a4 (diff)
downloadredmine-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')
-rw-r--r--config/boot.rb20
-rw-r--r--config/environment.rb2
2 files changed, 7 insertions, 15 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!
diff --git a/config/environment.rb b/config/environment.rb
index d0e8be900..db21c05df 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -5,7 +5,7 @@
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION
if RUBY_VERSION >= '1.9'
Encoding.default_external = 'UTF-8'