mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
186a8ae70c
refs https://github.com/TryGhost/Ghost/issues/7494 - remove `uuid` attrs from all models except Post - remove uuids from mirage factories and fixtures - add a workaround for tags where the selectize-based tags input on the PSM relies on a unique identifier for each tag which doesn't get sent back to the server when saving (fixes the broken tags input caused by uuid removal in https://github.com/TryGhost/Ghost/pull/7495)
18 lines
471 B
JavaScript
18 lines
471 B
JavaScript
/* eslint-disable camelcase */
|
|
import computed from 'ember-computed';
|
|
import Model from 'ember-data/model';
|
|
import attr from 'ember-data/attr';
|
|
|
|
export default Model.extend({
|
|
name: attr('string'),
|
|
description: attr('string'),
|
|
createdAtUTC: attr('moment-utc'),
|
|
updatedAtUTC: attr('moment-utc'),
|
|
createdBy: attr(),
|
|
updatedBy: attr(),
|
|
|
|
lowerCaseName: computed('name', function () {
|
|
return this.get('name').toLocaleLowerCase();
|
|
})
|
|
});
|