Ghost/ghost/admin/app/models/role.js

21 lines
520 B
JavaScript
Raw Normal View History

/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
2015-02-13 07:22:32 +03:00
import Ember from 'ember';
import DS from 'ember-data';
const {computed} = Ember;
const {Model, attr} = DS;
export default Model.extend({
uuid: attr('string'),
name: attr('string'),
description: attr('string'),
created_at: attr('moment-date'),
updated_at: attr('moment-date'),
created_by: attr(),
updated_by: attr(),
lowerCaseName: computed('name', function () {
return this.get('name').toLocaleLowerCase();
})
});