Skip to content

Commit c7e428f

Browse files
committed
FIX: ActiveAdmin::Dashboards#add_section: default to :root namespace if ActiveAdmin.default_namespace is set to false, otherwise DashboardController#index will never figure them out
1 parent 10ecc0a commit c7e428f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/dashboards.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def build(&block)
2727
# Add a new dashboard section to a namespace. If no namespace is given
2828
# it will be added to the default namespace.
2929
def add_section(name, options = {}, &block)
30-
namespace = options.delete(:namespace) || ActiveAdmin.default_namespace
30+
namespace = options.delete(:namespace) || ActiveAdmin.default_namespace || :root
3131
self.sections[namespace] ||= []
3232
self.sections[namespace] << Section.new(namespace, name, options, &block)
3333
self.sections[namespace].sort!

0 commit comments

Comments
 (0)