We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7dcf4 commit 4a72924Copy full SHA for 4a72924
app/serializers/crate.js
@@ -0,0 +1,13 @@
1
+import DS from 'ember-data';
2
+
3
+export default DS.RESTSerializer.extend({
4
+ isNewSerializerAPI: true,
5
6
+ extractRelationships(modelClass, resourceHash) {
7
+ if (resourceHash.versions == null) {
8
+ delete resourceHash.versions;
9
+ }
10
11
+ return this._super(modelClass, resourceHash);
12
13
+});
0 commit comments