summaryrefslogtreecommitdiffstats
path: root/config/boot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/boot.rb')
-rw-r--r--config/boot.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb
index dd5e3b691..95bd6b885 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -106,5 +106,17 @@ 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!