ember-tribe 1.1.10 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,13 +2,11 @@ import JSONAPISerializer from '@ember-data/serializer/json-api';
|
|
|
2
2
|
import { underscore } from '@ember/string';
|
|
3
3
|
|
|
4
4
|
export default class ApplicationSerializer extends JSONAPISerializer {
|
|
5
|
-
|
|
6
5
|
keyForAttribute(attr) {
|
|
7
6
|
return underscore(attr);
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
payloadKeyFromModelName(key) {
|
|
11
|
-
return key;
|
|
10
|
+
return underscore(key);
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
}
|
|
12
|
+
}
|