mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Having ```ruby has_one :post, embed: :ids ``` looks especially weird as it's a one-to-one association, hence there is only one id. The following looks better: ```ruby has_one :post, embed: :id ``` |
||
|---|---|---|
| .. | ||
| serializer | ||
| serializers | ||
| array_serializer.rb | ||
| serializer.rb | ||