Skip to content

Commit

Permalink
fix(admin): handle irregular plural deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
HEYGUL committed Jul 15, 2024
1 parent 8fa9d5a commit 10ca5e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin/mirage/serializers/application.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Inflector from 'ember-inflector';
import { irregular, pluralize } from '@ember-data/request-utils/string';
import { JSONAPISerializer } from 'miragejs';

export default JSONAPISerializer.extend({
typeKeyForModel(model) {
return Inflector.inflector.pluralize(model.modelName);
irregular('badge-criterion', 'badge-criteria');
return pluralize(model.modelName);
},
});

0 comments on commit 10ca5e8

Please sign in to comment.