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 27, 2024
2 parents 42b144f + 6de2619 commit 82e0417
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/3.0/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ 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.5.4 to 3.5.5
:::option Record errors
With version `3.5.5` we introduced a stricter error check. Now when the record have any error included the action will fail. This allow you to do things like:

```ruby
before_update do
if validation_fail?
errors.add(:field_id, "Error message")
end
end
```

:::

## 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.
Expand Down

0 comments on commit 82e0417

Please sign in to comment.