Skip to content

Commit

Permalink
Merge branch 'main' of github.com:avo-hq/avodocs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Mar 2, 2024
2 parents 55e03dd + e243536 commit a43ad43
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/3.0/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,15 @@ You can configure it using `config.turbo` option on `avo.rb` initializer

Supported options with default values:

```ruby
:::code-group
```ruby [Current version]
config.turbo = -> do
{
instant_click: true
}
end
```
```ruby [3.4.2]
config.turbo = -> do
{
instantclick: true
Expand Down
19 changes: 19 additions & 0 deletions docs/3.0/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
We'll update this page when we release new Avo 3 versions.

If you're looking for the Avo 2 to Avo 3 upgrade guide, please visit [the dedicated page](./avo-2-avo-3-upgrade).
## Upgrade from 3.4.2 to 3.4.3
:::option `turbo` configuration
In version `3.4.2` we introduced turbo configuration with `instantclick` option. We decided that `instant_click` is a more appropriate name.

```ruby
config.turbo = {
instantclick: true # [!code --]
instant_click: true # [!code ++]
}
```
:::

## Upgrade from 3.4.1 to 3.4.2
:::option Basic Filters URL param changed to `encoded_filters`
Expand Down Expand Up @@ -73,6 +84,14 @@ field :name,
end
:::
:::option `resource.record` or `record` as `nil` on visibility blocks
You may notice that `resource.record == nil` on some visibility blocks. That happens when evaluating the field visibility to render header columns. On index, there is no record.
This is a consequence of a bug fix where `resource.record` was wrongly storing the last record of the index table.
Check [this discussion](https://github.com/avo-hq/avo/issues/2544) for more details
:::
## Upgrade from 3.3.0 to 3.4.0
Ruby 3.0 is end-of-life and we pushed some code that only works with Ruby 3.1.
Expand Down

0 comments on commit a43ad43

Please sign in to comment.