We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9de7f44 commit ea9593fCopy full SHA for ea9593f
lib/active_admin.rb
@@ -50,9 +50,11 @@ module ActiveAdmin
50
autoload :Views, 'active_admin/views'
51
52
class Railtie < ::Rails::Railtie
53
- # Add load paths straight to I18n, so engines and application can overwrite it.
54
- require 'active_support/i18n'
55
- I18n.load_path += Dir[File.expand_path('../active_admin/locales/*.yml', __FILE__)]
+ config.after_initialize do
+ # Add load paths straight to I18n, so engines and application can overwrite it.
+ require 'active_support/i18n'
56
+ I18n.load_path += Dir[File.expand_path('../active_admin/locales/*.yml', __FILE__)]
57
+ end
58
end
59
60
class << self
0 commit comments