Where do I specify the pluralization of a model in Ember Data?

ember-data, ember.js

Solution

After digging around in the Ember Data sources, what you need to do is add a hash to your create of DS.RESTAdapter, ala:

App.store = DS.Store.create({
  adapter: DS.RESTAdapter.create({ bulkCommit: false,
                                   plurals: {"security": "securities"} }),
  revision: 4
});

Problem

I have a model type that ends in -y: Security How do I tell Ember Data to use /securities instead of /securitys to find resources for this?

Original source