mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
7e169a2a86
no issue - all of our models which allow users to name something use `name` as the field descriptor rather than `title` so `snippet.title` was renamed for consistency - also fixes typo in the plus-menu component that stopped clicking on snippets from working
12 lines
338 B
JavaScript
12 lines
338 B
JavaScript
import Model, {attr} from '@ember-data/model';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
export default Model.extend(ValidationEngine, {
|
|
validationType: 'snippet',
|
|
|
|
name: attr('string'),
|
|
mobiledoc: attr('json-string'),
|
|
createdAtUTC: attr('moment-utc'),
|
|
updatedAtUTC: attr('moment-utc')
|
|
});
|