Skip to content

Commit

Permalink
Merge pull request #141 from avo-hq/feature/disable_belongs_to_creati…
Browse files Browse the repository at this point in the history
…on_from_association

feature: disable belongs_to creation from association
  • Loading branch information
Paul-Bob authored Dec 4, 2023
2 parents 9dcd69e + 19d9884 commit 03c8647
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/3.0/associations/belongs_to.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ Any string.

<!-- @include: ./../common/associations_use_resource_option_common.md-->

:::option `can_create`
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.
Expand Down

0 comments on commit 03c8647

Please sign in to comment.