27bb03bbc0
* adding copyright header * fix fmt and a test
14 lines
295 B
JavaScript
14 lines
295 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import RESTSerializer from '@ember-data/serializer/rest';
|
|
import { decamelize } from '@ember/string';
|
|
|
|
export default RESTSerializer.extend({
|
|
keyForAttribute: function (attr) {
|
|
return decamelize(attr);
|
|
},
|
|
});
|