Skip to content

Commit 1899437

Browse files
Rio517NullVoxPopuli
authored andcommitted
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.
1 parent 50f2754 commit 1899437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/general/serializers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class PictureSerializer < ActiveModel::Serializer
140140
end
141141
```
142142

143-
For more context, see the [tests](../../test/adapter/polymorphic_test.rb) for each adapter.
143+
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.
144144

145145
### Caching
146146

0 commit comments

Comments
 (0)