Skip to content

Commit

Permalink
Merge pull request #111 from avo-hq/rename_link_to_resource
Browse files Browse the repository at this point in the history
upgrade guide for renaming the link to resource
  • Loading branch information
Paul-Bob authored Sep 12, 2023
2 parents a452741 + 99bd7dd commit 3fff5b2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/3.0/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,27 @@ field :stage,
```
:::

:::option Rename `link_to_resource` to `link_to_record`
`link_to_resource` was renamed to `link_to_record`.
::: code-group
```ruby {3-4} [Before]
class Avo::Resources::User < Avo::BaseResource
def fields
field :id, as: :id, link_to_resource: true
field :email, as: :gravatar, link_to_resource: true
end
end
```

```ruby {3-4} [After]
class Avo::Resources::User < Avo::BaseResource
def fields
field :id, as: :id, link_to_record: true
field :email, as: :gravatar, link_to_record: true
end
end
```
:::

## Upgrade from 3.0.1.beta5 to 3.0.1.beta6

Expand Down

0 comments on commit 3fff5b2

Please sign in to comment.