Commit
20aa33efef8d14e54b4e8a41dca9b233df959996
Exists in
master
and in
23 other branches
activate_plugin, api_fixies, api_tasks, article_blog_visualization_format, article_layout_refactoring, article_layout_temp, blog_page_bug, clone_article, communities_ratings, design_template, event_layout, fix_forum, fix_optional_fields, fix_suggest_article, folder_improvments, manage_organization, merge_deactive_and_ban, news_page, script_to_update, stable, template_mirror_block, tests, tests_fixies
Silence warning about deprecated interpolation for Rails < 3.0.0
This was only fixed on Feb 14th 2011:
https://rails.lighthouseapp.com/projects/8994/tickets/4525-favor-in-all-code-instead-of-deprecated-as-interpolation-syntax-for-i18n
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +require 'i18n/version' |
| |
2
| + |
| |
3
| +if I18n::VERSION > '0.3.7' && Rails::VERSION::STRING < '3.0.0' |
| |
4
| + module I18n::Backend::Base |
| |
5
| + def warn_syntax_deprecation! |
| |
6
| + # nothing |
| |
7
| + end |
| |
8
| + end |
| |
9
| +end |