From 20aa33efef8d14e54b4e8a41dca9b233df959996 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 22 Feb 2011 22:36:04 -0300 Subject: [PATCH] Silence warning about deprecated interpolation for Rails < 3.0.0 --- vendor/plugins/i18n_deprecation/init.rb | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) create mode 100644 vendor/plugins/i18n_deprecation/init.rb diff --git a/vendor/plugins/i18n_deprecation/init.rb b/vendor/plugins/i18n_deprecation/init.rb new file mode 100644 index 0000000..8f97cc5 --- /dev/null +++ b/vendor/plugins/i18n_deprecation/init.rb @@ -0,0 +1,9 @@ +require 'i18n/version' + +if I18n::VERSION > '0.3.7' && Rails::VERSION::STRING < '3.0.0' + module I18n::Backend::Base + def warn_syntax_deprecation! + # nothing + end + end +end -- libgit2 0.21.2