Created
March 14, 2014 11:03
-
-
Save jkarsrud/9545745 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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