Skip to content

Commit 17373d5

Browse files
committed
Another attempt to get the tests to pass on Travis-CI
1 parent a45ba04 commit 17373d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/router.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def apply(router)
1818
router.instance_exec(@application.namespaces.values) do |namespaces|
1919
namespaces.each do |namespace|
2020
root_and_dashboard_routes = Proc.new do
21-
root :to => namespace.root_to
21+
root :to => (namespace.root_to || "dashboard#index")
2222
if ActiveAdmin::Dashboards.built?
2323
match '/dashboard' => 'dashboard#index', :as => 'dashboard'
2424
end

0 commit comments

Comments
 (0)