Skip to content

Instantly share code, notes, and snippets.

@jkarsrud
Created March 14, 2014 11:03
Show Gist options
  • Save jkarsrud/9545745 to your computer and use it in GitHub Desktop.
Save jkarsrud/9545745 to your computer and use it in GitHub Desktop.
find: function(store, type, id/*, opts*/) {
return new Ember.RSVP.Promise(function(resolve, reject) {
hoodie.store.find(type.typeKey, id).then(function(data) {
Ember.run(null, resolve, data);
}, function(data) {
Ember.run(null, reject, data);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment