-
-
Save zoghal/2870227 to your computer and use it in GitHub Desktop.
ember rest adapter
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
findAll: function(store, type) { | |
var root = this.rootForType(type); | |
this.ajax(root, "GET", { | |
success: function(json) { | |
store.loadMany(type, json["objects"]); | |
store.typeMapFor(type).modelArrays.forEach( function(item) { | |
item.set('isLoaded', true); | |
}); | |
} | |
}); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment