open-nomad/ui/app/serializers/policy.js

11 lines
273 B
JavaScript

import ApplicationSerializer from './application';
import classic from 'ember-classic-decorator';
@classic
export default class Policy extends ApplicationSerializer {
normalize(typeHash, hash) {
hash.ID = hash.Name;
return super.normalize(typeHash, hash);
}
}