1107798da6
Generated with a codemode: https://github.com/ember-cli/ember-modules-codemod
17 lines
375 B
JavaScript
17 lines
375 B
JavaScript
import { copy } from '@ember/object/internals';
|
|
import ApplicationSerializer from './application';
|
|
|
|
export default ApplicationSerializer.extend({
|
|
primaryKey: 'AccessorID',
|
|
|
|
attrs: {
|
|
secret: 'SecretID',
|
|
},
|
|
|
|
normalize(typeHash, hash) {
|
|
hash.PolicyIDs = hash.Policies;
|
|
hash.PolicyNames = copy(hash.Policies);
|
|
return this._super(typeHash, hash);
|
|
},
|
|
});
|