open-nomad/ui/mirage/serializers/token.js
2017-10-16 13:27:51 -07:00

13 lines
333 B
JavaScript

import ApplicationSerializer from './application';
export default ApplicationSerializer.extend({
serializeIds: 'always',
keyForRelationshipIds(relationship) {
if (relationship === 'policies') {
return 'Policies';
}
return ApplicationSerializer.prototype.keyForRelationshipIds.apply(this, arguments);
},
});