Ghost/core/client/app/models/role.js
Kevin P. Kucharczyk 9eac05e082 Standardise client property names to camelCase
closes #6018
- added keyForAttribute method in application serializer
- override keyForAttribute in settings serializer to not apply camelCase/underscore conversion
- rename under_scored properties to camelCased
2016-01-23 19:12:22 +01:00

21 lines
535 B
JavaScript

/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
import Ember from 'ember';
import Model from 'ember-data/model';
import attr from 'ember-data/attr';
const {computed} = Ember;
export default Model.extend({
uuid: attr('string'),
name: attr('string'),
description: attr('string'),
createdAt: attr('moment-date'),
updatedAt: attr('moment-date'),
createdBy: attr(),
updatedBy: attr(),
lowerCaseName: computed('name', function () {
return this.get('name').toLocaleLowerCase();
})
});