]> git.openstreetmap.org Git - rails.git/commitdiff
Use I18n::Backend::Simple.include directly
authorTom Hughes <tom@compton.nu>
Sun, 18 Dec 2011 15:49:21 +0000 (15:49 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 18 Dec 2011 15:49:21 +0000 (15:49 +0000)
config/initializers/i18n.rb

index 7b5db5aabf1d2c0babbc914924bfa0813a6fe408..87bfe611f42592170eb405b865a5fd337c4e7ce3 100644 (file)
@@ -35,11 +35,11 @@ module I18n
   end
 end
 
   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.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!
 
 Rails.configuration.after_initialize do
   I18n.reload!