Closed camallen closed 9 years ago
@camallen I converted all our serializers to AMS in my branch https://github.com/edpaget/Panoptes/tree/ams. I'm not going to be working on it again until next week. There's a bunch of stuff that broke that I still need to resolve.
Linked to #115 - The project owner relation is a polymorphic belongs_to (User & UserGroup). The serialised response returns the link to
/owner
which is not a valid URL.We need to: a) override the href in the serialiser b) patch restpack-serializer to handle the polymorphic relations (https://github.com/RestPack/restpack_serializer/pull/81) c) Investigate porting to ActiveModelSerialisers, seems they handle polymorphic relations by default - @edpaget thoughts?