I have
postgres_ext-serializers
's code reviewed and, seems, it has no special case for the
has_one
relation, unlike
has_many
and
belongs_to
. It looks like inconsistency with
active_model_serializers
gem, open an issue on GitHub and see, what the creator thinks about it. Currently, I suggest you to add
user_id
field to attributes list. At least, you will be able to restore relations between
User
and
Address
models from resulting JSON. —
Featalion 8 secs ago