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 a45ba04 commit 17373d5Copy full SHA for 17373d5
lib/active_admin/router.rb
@@ -18,7 +18,7 @@ def apply(router)
18
router.instance_exec(@application.namespaces.values) do |namespaces|
19
namespaces.each do |namespace|
20
root_and_dashboard_routes = Proc.new do
21
- root :to => namespace.root_to
+ root :to => (namespace.root_to || "dashboard#index")
22
if ActiveAdmin::Dashboards.built?
23
match '/dashboard' => 'dashboard#index', :as => 'dashboard'
24
end
0 commit comments