Skip to content

Instantly share code, notes, and snippets.

Created February 11, 2013 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e44b07b142ca046e6b0a to your computer and use it in GitHub Desktop.
Save anonymous/e44b07b142ca046e6b0a to your computer and use it in GitHub Desktop.
// Uncaught TypeError: Object App.MySerializer has no method 'registerTransform'
App.Adapter = DS.RESTAdapter.extend({
serializer: "App.MySerializer"
});
App.MySerializer = DS.Serializer.extend({
primaryKey: function(type) {
var typeString = type.toString.split(".")[1].underscore();
console.log("test");
return typeString + "_id";
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment