From 993a48fdcf38fdbc5cec711353d8aa00880203ec Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Thu, 7 Jun 2018 10:05:21 +0530 Subject: [PATCH] wordsmitting --- docs/general/serializers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/general/serializers.md b/docs/general/serializers.md index 5b3c0bcd..28417898 100644 --- a/docs/general/serializers.md +++ b/docs/general/serializers.md @@ -65,7 +65,7 @@ Where: - `virtual_value:` - `polymorphic:` defines if polymorphic relation type should be nested in serialized association. - `type:` the resource type as used by JSON:API, especially on a `belongs_to` relationship. - - `class_name:` used to determine `type` when `type` not given. `class_name` option to supply the model name as string. + - `class_name:` used to determine `type` when `type` is not given. `class_name` option to supply the model name as string. - `foreign_key:` used by JSON:API on a `belongs_to` relationship to avoid unnecessarily loading the association object. - `namespace:` used when looking up the serializer and `serializer` is not given. Falls back to the parent serializer's `:namespace` instance options, which, when present, comes from the render options. See [Rendering#namespace](rendering.md#namespace] for more details. - optional: `&block` is a context that returns the association's attributes.