Skip to content

Commit ff27032

Browse files
authored
Merge pull request #2065 from akiicat/master
Update documentation serializers.md
2 parents 6fbf59f + 19f8ada commit ff27032

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/general/serializers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ With the `:json` adapter, the previous serializer would be rendered as:
225225
link :self do
226226
href "https://example.com/link_author/#{object.id}"
227227
end
228-
link :author { link_author_url(object) }
229-
link :link_authors { link_authors_url }
228+
link(:author) { link_author_url(object) }
229+
link(:link_authors) { link_authors_url }
230230
link :other, 'https://example.com/resource'
231-
link :posts { link_author_posts_url(object) }
231+
link(:posts) { link_author_posts_url(object) }
232232
```
233233

234234
#### #object

0 commit comments

Comments
 (0)