mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
16 lines
456 B
JavaScript
16 lines
456 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'),
|
||
|
created_by: DS.belongsTo('user', { async: true }),
|
||
|
updated_at: DS.attr('moment-date'),
|
||
|
updated_by: DS.belongsTo('user', { async: true }),
|
||
|
|
||
|
lowerCaseName: Ember.computed('name', function () {
|
||
|
return this.get('name').toLocaleLowerCase();
|
||
|
})
|
||
|
});
|
||
|
|
||
|
export default Role;
|