lib/active_admin/engine.rb in activeadmin-rb-1.5.2 vs lib/active_admin/engine.rb in activeadmin-rb-1.6.0
- old
+ new
@@ -1,7 +1,8 @@
module ActiveAdmin
class Engine < ::Rails::Engine
- initializer "active_admin.load_app_path" do |app|
+ # Set default values for app_path and load_paths before running initializers
+ initializer "active_admin.load_app_path", before: :load_config_initializers do |app|
ActiveAdmin::Application.setting :app_path, app.root
ActiveAdmin::Application.setting :load_paths, [File.expand_path('app/admin', app.root)]
end
initializer "active_admin.precompile", group: :all do |app|