mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fixed Comments highlight
This commit is contained in:
parent
c4af610ed2
commit
b68305f560
@ -255,7 +255,7 @@ end
|
|||||||
The attribute names are a **whitelist** of attributes to be serialized.
|
The attribute names are a **whitelist** of attributes to be serialized.
|
||||||
|
|
||||||
The `has_many`, `has_one`, and `belongs_to` declarations describe relationships between
|
The `has_many`, `has_one`, and `belongs_to` declarations describe relationships between
|
||||||
resources. By default, when you serialize a `Post`, you will get its `Comment`s
|
resources. By default, when you serialize a `Post`, you will get its `Comments`
|
||||||
as well.
|
as well.
|
||||||
|
|
||||||
You may also use the `:serializer` option to specify a custom serializer class, for example:
|
You may also use the `:serializer` option to specify a custom serializer class, for example:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user