Skip to content

Instantly share code, notes, and snippets.

@vseventer
Created March 4, 2014 17:02
Show Gist options
  • Save vseventer/9350654 to your computer and use it in GitHub Desktop.
Save vseventer/9350654 to your computer and use it in GitHub Desktop.
Kinvey JavaScript library for Ember.js: defining users.
// 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