Skip to content

Commit

Permalink
Add info on setting polymorphic serializers (#1906)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Rio517 authored and NullVoxPopuli committed Sep 7, 2016
1 parent 50f2754 commit 1899437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/general/serializers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1899437

Please sign in to comment.