Skip to content

Instantly share code, notes, and snippets.

@fractaloop
Created July 31, 2012 16:34
Show Gist options
  • Save fractaloop/3218314 to your computer and use it in GitHub Desktop.
Save fractaloop/3218314 to your computer and use it in GitHub Desktop.
ember-data relationship mappings
App.store = DS.Store.create({
revision: 4,
adapter: DS.RESTAdapter.create({
serializer: DS.Serializer.create({
primaryKey: function(type) { return '_id'; }
}),
mappings: {
'flow': Flow.Flow
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment