From 8d3e33e16c8ea78792a50d738b3ceb4eca8e0fc8 Mon Sep 17 00:00:00 2001 From: Iain Beeston Date: Tue, 30 Jan 2024 10:39:23 +0000 Subject: [PATCH] Correct the way to get a dashboard path In the switch from avo 2 to avo 3, the way to get a path to a dashboard changed from: avo.dashboard_path(:dashy) to avo_dashboards.dashboard_path(:dashy) But the documentation wasn't updated. --- docs/3.0/customization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/3.0/customization.md b/docs/3.0/customization.md index 633a67b5..501aeeec 100644 --- a/docs/3.0/customization.md +++ b/docs/3.0/customization.md @@ -221,7 +221,7 @@ You can also use a lambda function to define that path. ```ruby{2} Avo.configure do |config| - config.home_path = -> { avo.dashboard_path(:dashy) } + config.home_path = -> { avo_dashboards.dashboard_path(:dashy) } end ```