Skip to content

Commit

Permalink
proper place for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Mar 17, 2024
1 parent ac1b4f6 commit 87f7b96
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
21 changes: 21 additions & 0 deletions docs/3.0/fields/boolean_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,24 @@ field :roles, as: :boolean_group, name: 'User roles', options: { admin: 'Adminis
"creator": true,
}
```


:::warning
The final value in the database column will be overwritten, The options will not be appended.


```json
// this
{
"feature_enabled": true,
"another_feature_enabled": false,
"something_else": "some_value" // this will disappear
}

// becomes
{
"feature_enabled": true,
"another_feature_enabled": false,
}
```
:::
20 changes: 0 additions & 20 deletions docs/3.0/fields/key_value.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,6 @@ The `KeyValue` field makes it easy to edit flat key-value pairs stored in `JSON`
field :meta, as: :key_value
```

:::warning
The final value in the database column will be overwritten, The options will not be appended.


```json
// this
{
"feature_enabled": true,
"another_feature_enabled": false,
"something_else": "some_value" // this will disappear
}

// becomes
{
"feature_enabled": true,
"another_feature_enabled": false,
}
```
:::

## Options

:::option `key_label`
Expand Down

0 comments on commit 87f7b96

Please sign in to comment.