Skip to content

Commit 1a7a96d

Browse files
committed
mirage/serializers/application: Use ActiveModelSerializer base class
1 parent 61a0640 commit 1a7a96d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mirage/serializers/application.js

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

3-
export default Serializer.extend({
3+
export default ActiveModelSerializer.extend({
44
keyForCollection(modelName) {
55
if (modelName === 'version-download') {
66
return 'version_downloads';
77
}
88

9-
return Serializer.prototype.keyForCollection.apply(this, arguments);
9+
return ActiveModelSerializer.prototype.keyForCollection.apply(this, arguments);
1010
}
1111
});

0 commit comments

Comments
 (0)