Skip to content

Commit

Permalink
Fix string pluralization, closes ##544
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed Mar 22, 2018
1 parent ada5623 commit a7acafb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addon/adapters/firebase.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import Ember from 'ember';
import DS from 'ember-data';
import Inflector from 'ember-inflector';
import Waitable from '../mixins/waitable';
import toPromise from '../utils/to-promise';

const { assign, RSVP } = Ember;
const { Promise } = RSVP;

import { pluralize } from 'ember-inflector';

var uniq = function (arr) {
var ret = Ember.A();

Expand Down Expand Up @@ -634,7 +635,7 @@ export default DS.Adapter.extend(Waitable, {
*/
pathForType(modelName) {
var camelized = Ember.String.camelize(modelName);
return Inflector.inflector.pluralize(camelized);
return pluralize(camelized);
},


Expand Down

0 comments on commit a7acafb

Please sign in to comment.