From: Tom Hughes Date: Sun, 18 Dec 2011 15:49:21 +0000 (+0000) Subject: Use I18n::Backend::Simple.include directly X-Git-Tag: live~6466 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/11cc7ebaa76c0bcdc0164526430888a50ca04550 Use I18n::Backend::Simple.include directly --- diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index 7b5db5aab..87bfe611f 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -35,11 +35,11 @@ module I18n end end -I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization) -I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback) +I18n::Backend::Simple.include(I18n::Backend::Pluralization) +I18n::Backend::Simple.include(I18n::Backend::PluralizationFallback) I18n.load_path << "#{Rails.root}/config/pluralizers.rb" -I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) +I18n::Backend::Simple.include(I18n::Backend::Fallbacks) Rails.configuration.after_initialize do I18n.reload!