Commit
20aa33efef8d14e54b4e8a41dca9b233df959996
Exists in
staging
and in
26 other branches
angular_poc, api-article-archived, api-homepage, api_visitor, article-readonly, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, content-manager-hostspot, environment-api, export-comment-paragraph, fix_event_date_issue, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, pg_search_rank, production, resend_confirmation_email, tasks_keep_filter_params
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 |