mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
026366bc5c
No Issue - ember-data@beta.12 - ember-data now warns if a payload contains properties that do not exist in the model. Because of this all missing model attributes have been added (without their relationship defined) because they're currently unused and we don't need to generate additional API requests to resolve the async relationships.
16 lines
400 B
JavaScript
16 lines
400 B
JavaScript
var Role = DS.Model.extend({
|
|
uuid: DS.attr('string'),
|
|
name: DS.attr('string'),
|
|
description: DS.attr('string'),
|
|
created_at: DS.attr('moment-date'),
|
|
updated_at: DS.attr('moment-date'),
|
|
created_by: DS.attr(),
|
|
updated_by: DS.attr(),
|
|
|
|
lowerCaseName: Ember.computed('name', function () {
|
|
return this.get('name').toLocaleLowerCase();
|
|
})
|
|
});
|
|
|
|
export default Role;
|