Skip to content
This repository
Browse code

I18n: removed call to #populate from main library files

  • Loading branch information...
commit 0fcd5b5466461e44b6f3b007fa2a2fdf43f55681 1 parent 44de71b
Marko Seppä mseppae authored svenfuchs committed
4 actionpack/lib/action_view.rb
@@ -43,9 +43,7 @@
43 43 require 'action_view/partials'
44 44 require 'action_view/template_error'
45 45
46   -I18n.backend.populate do
47   - I18n.load_translations "#{File.dirname(__FILE__)}/action_view/locale/en-US.yml"
48   -end
  46 +I18n.load_translations "#{File.dirname(__FILE__)}/action_view/locale/en-US.yml"
49 47
50 48 require 'action_view/helpers'
51 49
4 activerecord/lib/active_record.rb
@@ -77,7 +77,5 @@
77 77
78 78 require 'active_record/schema_dumper'
79 79
80   -I18n.backend.populate do
81   - I18n.load_translations File.dirname(__FILE__) + '/active_record/locale/en-US.yml'
82   -end
  80 +I18n.load_translations File.dirname(__FILE__) + '/active_record/locale/en-US.yml'
83 81
4 activesupport/lib/active_support.rb
@@ -55,9 +55,7 @@
55 55
56 56 require 'active_support/time_with_zone'
57 57
58   -I18n.populate do
59   - I18n.load_translations File.dirname(__FILE__) + '/active_support/locale/en-US.yml'
60   -end
  58 +I18n.load_translations File.dirname(__FILE__) + '/active_support/locale/en-US.yml'
61 59
62 60 Inflector = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Inflector', 'ActiveSupport::Inflector')
63 61 Dependencies = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Dependencies', 'ActiveSupport::Dependencies')

0 comments on commit 0fcd5b5

Please sign in to comment.
Something went wrong with that request. Please try again.