Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added urlRoot to user.

  • Loading branch information...
commit 88a1603b3c1078b1b5d73939d5ab960f79e44ccd 1 parent c6c83fc
Josh Nesbitt joshnesbitt authored
2  javascripts/collections/users_with_username.js
View
@@ -2,8 +2,6 @@ Demo.Collections.UsersWithUsername = Demo.Collections.Base.extend({
model : Demo.Models.User,
- urlRoot : Demo.Config.url + 'resources/users',
-
initialize : function(models, options) {
this.username = options.username;
},
4 javascripts/models/user.js
View
@@ -1,5 +1,7 @@
Demo.Models.User = Demo.Models.Base.extend({
- serializable : [ '_id', 'username' ]
+ serializable : [ '_id', 'username' ],
+
+ urlRoot : Demo.Config.url + 'resources/users'
});
Please sign in to comment.
Something went wrong with that request. Please try again.