Skip to content

Commit

Permalink
fix(deprecation): WarpDrive/EmberData no longer uses ember-inflector …
Browse files Browse the repository at this point in the history
…for irregular rules

Please `import { irregular } from '@ember-data/request-utils/string';`
instead to register a custom irregular rule for use with EmberData.
[deprecation id: warp-drive.ember-inflector] This will be removed in
warp-drive 6.0.0.
  • Loading branch information
eth3lbert committed Jan 9, 2025
1 parent fab7800 commit 287e5e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/dependency.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Model, { attr, belongsTo } from '@ember-data/model';
import { irregular } from '@ember-data/request-utils/string';

import Inflector from 'ember-inflector';

Inflector.inflector.irregular('dependency', 'dependencies');
irregular('dependency', 'dependencies');

export default class Dependency extends Model {
@attr crate_id;
Expand Down

0 comments on commit 287e5e9

Please sign in to comment.