Skip to content

Instantly share code, notes, and snippets.

Created February 11, 2013 21:59
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/f7d31e0819cf1618abda to your computer and use it in GitHub Desktop.
Save anonymous/f7d31e0819cf1618abda to your computer and use it in GitHub Desktop.
App.Adapter.map(function(){
serializer: DS.Serializer.create({
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