framework/ember/app/models/activity.js
Toby Zerner a62e04f956 Upgrade to JSON-API RC3 + latest version of tobscure/json-api
Note: npm source for ember-json-api changed to a fork, but I still had
to apply a custom change to get polymorphic relationships to work (see
https://github.com/kurko/ember-json-api/pull/71#issuecomment-85257281)
2015-03-24 15:04:24 +10:30

12 lines
240 B
JavaScript

import DS from 'ember-data';
export default DS.Model.extend({
contentType: DS.attr('string'),
content: DS.attr(),
time: DS.attr('date'),
user: DS.belongsTo('user'),
sender: DS.belongsTo('user'),
post: DS.belongsTo('post')
});