mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
18 lines
456 B
JavaScript
18 lines
456 B
JavaScript
import Ember from 'ember';
|
|
import DS from 'ember-data';
|
|
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;
|