mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
9fe5159915
no issue - https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/no-empty-attrs.md
17 lines
488 B
JavaScript
17 lines
488 B
JavaScript
/* eslint-disable camelcase */
|
|
import Model from 'ember-data/model';
|
|
import attr from 'ember-data/attr';
|
|
import {computed} from '@ember/object';
|
|
|
|
export default Model.extend({
|
|
name: attr('string'),
|
|
description: attr('string'),
|
|
createdAtUTC: attr('moment-utc'),
|
|
updatedAtUTC: attr('moment-utc'),
|
|
createdBy: attr('number'),
|
|
updatedBy: attr('number'),
|
|
|
|
lowerCaseName: computed('name', function () {
|
|
return this.get('name').toLocaleLowerCase();
|
|
})
|
|
});
|