From 19f8ada4afce77430c59bab17e0388a6ec8079f7 Mon Sep 17 00:00:00 2001 From: Akiicat Date: Tue, 28 Feb 2017 05:23:19 +0800 Subject: [PATCH] Update serializers.md --- docs/general/serializers.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/general/serializers.md b/docs/general/serializers.md index 9925744f..bb6e21be 100644 --- a/docs/general/serializers.md +++ b/docs/general/serializers.md @@ -225,10 +225,10 @@ With the `:json` adapter, the previous serializer would be rendered as: link :self do href "https://example.com/link_author/#{object.id}" end -link :author { link_author_url(object) } -link :link_authors { link_authors_url } +link(:author) { link_author_url(object) } +link(:link_authors) { link_authors_url } link :other, 'https://example.com/resource' -link :posts { link_author_posts_url(object) } +link(:posts) { link_author_posts_url(object) } ``` #### #object