Permalink
Browse files

Added urlRoot to user.

  • Loading branch information...
1 parent c6c83fc commit 88a1603b3c1078b1b5d73939d5ab960f79e44ccd @joshnesbitt joshnesbitt committed Apr 13, 2012
Showing with 3 additions and 3 deletions.
  1. +0 −2 javascripts/collections/users_with_username.js
  2. +3 −1 javascripts/models/user.js
@@ -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;
},
@@ -1,5 +1,7 @@
Demo.Models.User = Demo.Models.Base.extend({
- serializable : [ '_id', 'username' ]
+ serializable : [ '_id', 'username' ],
+
+ urlRoot : Demo.Config.url + 'resources/users'
});

0 comments on commit 88a1603

Please sign in to comment.