Skip to content

Instantly share code, notes, and snippets.

@skylar
Created February 28, 2012 23:30
Show Gist options
  • Select an option

  • Save skylar/1936122 to your computer and use it in GitHub Desktop.

Select an option

Save skylar/1936122 to your computer and use it in GitHub Desktop.
where's the key?
var App = Em.Application.create();
App.Person = DS.Model.extend({
name: DS.attr('string')
, location: DS.attr('string')
});
var primaryKey = Ember.getPath('App.Merchant', 'proto.primaryKey');
// expected primaryKey to be 'id'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment