justinrassier/meanBrew — pull request #17 by justinrassier (2014-03-14 00:25:05+00:00)
Title: Fix user updating

When making tweaks in earlier branches I found out I made 2 mistakes:

1) I changed how passport serializes for the bootstrapped user. This means when saving a user and deserializing, it was no longer deserializing as a mongoose user, but a ViewModel instead. This means the save operation didn't exist. I changed this around so the actual bootstrapping correctly sends a UserViewModel

2) Also, angular's resource didn't like the fact I named the parameter @_id, even though that is what the object's id property is. It needs it to be just be @id. I don't know how it just knows to not pay attention to the underscore, but it does.