From 1be6499c92bdc60baa2e4ed0e535a153d98d5f34 Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Thu, 23 Nov 2023 16:41:06 +0200 Subject: [PATCH 1/2] feature: disable belongs_to creation from association --- docs/3.0/associations/belongs_to.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/3.0/associations/belongs_to.md b/docs/3.0/associations/belongs_to.md index 8bcb3297..ad78277f 100644 --- a/docs/3.0/associations/belongs_to.md +++ b/docs/3.0/associations/belongs_to.md @@ -62,6 +62,18 @@ Any string. +:::option `allow_creation` +Controls the creation link visibility on forms. + +#### Default + +`true` + +#### Possible values + +`true`, `false` +::: + ## Overview On the `Index` and `Show` views, Avo will generate a link to the associated record containing the [`@title`](./../resources.html#setting-the-title-of-the-resource) value. From 19d988414578e250b89cd00da88e8543118785b7 Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Mon, 4 Dec 2023 15:46:57 +0200 Subject: [PATCH 2/2] rename the option to `can_create` --- docs/3.0/associations/belongs_to.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/3.0/associations/belongs_to.md b/docs/3.0/associations/belongs_to.md index ad78277f..49c8f50b 100644 --- a/docs/3.0/associations/belongs_to.md +++ b/docs/3.0/associations/belongs_to.md @@ -62,7 +62,7 @@ Any string. -:::option `allow_creation` +:::option `can_create` Controls the creation link visibility on forms. #### Default