Ghost/ghost/admin/app/models/role.js
2015-03-11 12:37:41 -06:00

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;