From 18994375666956d8454d4d51e0602cf4ee4baaa4 Mon Sep 17 00:00:00 2001 From: Mario Olivio Flores Date: Wed, 7 Sep 2016 21:22:08 +0200 Subject: [PATCH] Add info on setting polymorphic serializers (#1906) While this same document provides details on how to override the serializer_for, not all users will realize this could be used to set the sterilizers for polymorphic relationships. This change just adds a link to that documentation and makes that point obvious. --- 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 20a145cd..7e50c71c 100644 --- a/docs/general/serializers.md +++ b/docs/general/serializers.md @@ -140,7 +140,7 @@ class PictureSerializer < ActiveModel::Serializer end ``` -For more context, see the [tests](../../test/adapter/polymorphic_test.rb) for each adapter. +You can specify the serializers by [overriding serializer_for](serializers.md#overriding-association-serializer-lookup). For more context about polymorphic relationships, see the [tests](../../test/adapter/polymorphic_test.rb) for each adapter. ### Caching