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

12 lines
338 B
JavaScript
Raw Normal View History

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')
});