decide.nolog.cz/app/serializers/poll.js
Jeldrik Hanschke 748b17e0ea
answers could be derived from answerType (#704)
* answers could be derived from answerType

* improve readability of API test data

* update API tests for removed answers property
2023-10-23 17:33:25 +02:00

12 lines
291 B
JavaScript

import { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';
import ApplicationSerializer from './application';
export default class PollSerializer extends ApplicationSerializer.extend(
EmbeddedRecordsMixin,
) {
attrs = {
users: {
deserialize: 'records',
},
};
}