Created
March 4, 2014 17:02
-
-
Save vseventer/9350654 to your computer and use it in GitHub Desktop.
Kinvey JavaScript library for Ember.js: defining users.
This file contains 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
// Define the `User` model, and set the adapter to Kinvey. | |
App.User = Kinvey.User.extend({ | |
// `Kinvey.User` extends `Kinvey.Model` and thus also provides your | |
// users with `acl`, `createdAt`, and `lastModifiedAt` attributes. | |
// In addition, the following attributes are set: `username`, | |
// `password`, `email`, `firstName`, `lastName`, `fullName`, and | |
// `isLoggedIn`. Add your own here. | |
dateOfBirth: DS.attr('date') | |
}); | |
App.UserAdapter = Kinvey.UserAdapter; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment