Skip to content

Instantly share code, notes, and snippets.

@mlynch
Created May 11, 2012 17:01
Show Gist options
  • Save mlynch/2661003 to your computer and use it in GitHub Desktop.
Save mlynch/2661003 to your computer and use it in GitHub Desktop.
Backbone Collections
var UserAppVersions = Backbone.Collection.extend({
model: UserAppVersion,
url: function() {
return '/api/v1/user/app/' + this.id + '/versions';
},
parse: function(response) {
return response.versions;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment