lib/active_admin/dashboards.rb in activeadmin-0.2.2 vs lib/active_admin/dashboards.rb in activeadmin-0.3.0

- old
+ new

@@ -25,10 +25,10 @@ end # Add a new dashboard section to a namespace. If no namespace is given # it will be added to the default namespace. def add_section(name, options = {}, &block) - namespace = options.delete(:namespace) || ActiveAdmin.default_namespace + namespace = options.delete(:namespace) || ActiveAdmin.application.default_namespace || :root self.sections[namespace] ||= [] self.sections[namespace] << Section.new(namespace, name, options, &block) self.sections[namespace].sort! end alias_method :section, :add_section