summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-21 11:02:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-21 11:02:18 +0000
commitca3b503478e4b60436062e1b4766b009ce4fa579 (patch)
tree488fc8662f7c186a2f8017af36f65e346d813c61 /config
parentc35a79ab443ceeb9c5cad9178c9c68c47b19d2cb (diff)
downloadredmine-ca3b503478e4b60436062e1b4766b009ce4fa579.tar.gz
redmine-ca3b503478e4b60436062e1b4766b009ce4fa579.zip
Updgraded Rails to 2.3.11 (#6887).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4904 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/environment.rb4
-rw-r--r--config/initializers/10-patches.rb16
2 files changed, 8 insertions, 12 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 199665572..91dfaa42c 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.5' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
@@ -24,7 +24,7 @@ Rails::Initializer.run do |config|
# config.frameworks -= [ :action_web_service, :action_mailer ]
# Add additional load paths for sweepers
- config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
+ config.autoload_paths += %W( #{RAILS_ROOT}/app/sweepers )
# Force all environments to use the same logger level
# (by default production uses :info, the others :debug)
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index 25b20523b..0e23a3d43 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -79,16 +79,12 @@ end
ActionMailer::Base.send :include, AsynchronousMailer
-# TODO: Hack to support i18n 4.x on Rails 2.3.5. Remove post 2.3.6.
-# See http://www.redmine.org/issues/6428 and http://www.redmine.org/issues/5608
-module I18n
- module Backend
- module Base
- def warn_syntax_deprecation!(*args)
- return if @skip_syntax_deprecation
- warn "The {{key}} interpolation syntax in I18n messages is deprecated and will be removed in Redmine 1.2. Please use %{key} instead, see http://www.redmine.org/issues/7013 for more information."
- @skip_syntax_deprecation = true
- end
+# TMail::Unquoter.convert_to_with_fallback_on_iso_8859_1 introduced in TMail 1.2.7
+# triggers a test failure in test_add_issue_with_japanese_keywords(MailHandlerTest)
+module TMail
+ class Unquoter
+ class << self
+ alias_method :convert_to, :convert_to_without_fallback_on_iso_8859_1
end
end
end