Commit
20aa33efef8d14e54b4e8a41dca9b233df959996
Exists in
master
and in
22 other branches
angular_poc, api-article-archived, article-readonly, backup-7-jan-2016, captcha_serpro_plugin, content-manager-hostspot, export-comment-paragraph, fix_event_date_issue, login-captcha, master_rails3, new_video_plugin, pg_search_rank, production, refactor_with_role, refactor_with_role_scope, remove_profile_cat_icons, resend_confirmation_email, staging, staging_rails3, tasks_keep_filter_params, theme-brasil-digital-from-staging, travis
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 |