Last active
December 17, 2015 18:40
-
-
Save SweeD/5655281 to your computer and use it in GitHub Desktop.
DS.RESTAdapter plurals configuration (Ember-Data)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DS.RESTAdapter.configure("plurals", | |
galleries: "galleries" # If your model is called App.Galleries | |
gallery: "galleries" # If your model is called App.Gallery | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do the configuration block before the DS.RESTAdapter.create.
Switching
DS.RESTAdapter.configure( ...
andApp.Store = DS.Store.extend({
do the trick.