2015-10-28 14:36:45 +03:00
|
|
|
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
|
2015-02-13 07:22:32 +03:00
|
|
|
import Ember from 'ember';
|
2016-01-12 22:23:01 +03:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
2015-08-19 14:55:40 +03:00
|
|
|
|
2015-10-28 14:36:45 +03:00
|
|
|
const {computed} = Ember;
|
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();
|
|
|
|
})
|
|
|
|
});
|