Skip to content

Instantly share code, notes, and snippets.

@vseventer
Created March 4, 2014 16:59
Show Gist options
  • Save vseventer/9350543 to your computer and use it in GitHub Desktop.
Save vseventer/9350543 to your computer and use it in GitHub Desktop.
Kinvey JavaScript library for Ember.js: defining models.
// Define a `Book` model, and set the adapter to Kinvey.
App.Book = Kinvey.Model.extend({
// `Kinvey.Model` provides your models with three attributes:
// `acl`, `createdAt`, and `lastModifiedAt`. Add your own here.
author: DS.attr('string'),
title : DS.attr('string')
});
App.BookAdapter = Kinvey.RESTAdapter;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment