Skip to content

Instantly share code, notes, and snippets.

@SweeD
Last active December 17, 2015 18:40
Show Gist options
  • Save SweeD/5655281 to your computer and use it in GitHub Desktop.
Save SweeD/5655281 to your computer and use it in GitHub Desktop.
DS.RESTAdapter plurals configuration (Ember-Data)
DS.RESTAdapter.configure("plurals",
galleries: "galleries" # If your model is called App.Galleries
gallery: "galleries" # If your model is called App.Gallery
)
@SweeD
Copy link
Author

SweeD commented May 27, 2013

Do the configuration block before the DS.RESTAdapter.create.

Switching DS.RESTAdapter.configure( ... and App.Store = DS.Store.extend({ do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment