Skip to content

Commit 9e8fce3

Browse files
committed
mirage/serializers/application: Remove redundant keyForCollection() override
This is the default serialization for the ActiveModelSerializer
1 parent 1a7a96d commit 9e8fce3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

mirage/serializers/application.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
import { ActiveModelSerializer } from 'ember-cli-mirage';
22

3-
export default ActiveModelSerializer.extend({
4-
keyForCollection(modelName) {
5-
if (modelName === 'version-download') {
6-
return 'version_downloads';
7-
}
8-
9-
return ActiveModelSerializer.prototype.keyForCollection.apply(this, arguments);
10-
}
11-
});
3+
export default ActiveModelSerializer;

0 commit comments

Comments
 (0)