2015-10-28 14:36:45 +03:00
|
|
|
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
|
2015-02-13 07:22:32 +03:00
|
|
|
import Ember from 'ember';
|
|
|
|
import DS from 'ember-data';
|
2015-08-19 14:55:40 +03:00
|
|
|
|
2015-10-28 14:36:45 +03:00
|
|
|
const {computed} = Ember;
|
|
|
|
const {Model, attr} = DS;
|
2014-07-23 10:13:20 +04:00
|
|
|
|
2015-10-28 14:36:45 +03:00
|
|
|
export default Model.extend({
|
|
|
|
uuid: attr('string'),
|
|
|
|
name: attr('string'),
|
|
|
|
description: attr('string'),
|
|
|
|
created_at: attr('moment-date'),
|
|
|
|
updated_at: attr('moment-date'),
|
|
|
|
created_by: attr(),
|
|
|
|
updated_by: attr(),
|
|
|
|
|
|
|
|
lowerCaseName: computed('name', function () {
|
2014-07-21 01:48:24 +04:00
|
|
|
return this.get('name').toLocaleLowerCase();
|
|
|
|
})
|
|
|
|
});
|