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
|
|
|
|
|
|
|
export default DS.Model.extend({
|
2014-07-21 01:48:24 +04:00
|
|
|
uuid: DS.attr('string'),
|
|
|
|
name: DS.attr('string'),
|
|
|
|
description: DS.attr('string'),
|
2014-07-23 10:13:20 +04:00
|
|
|
created_at: DS.attr('moment-date'),
|
|
|
|
updated_at: DS.attr('moment-date'),
|
2014-12-06 01:20:10 +03:00
|
|
|
created_by: DS.attr(),
|
|
|
|
updated_by: DS.attr(),
|
2014-07-23 10:13:20 +04:00
|
|
|
|
2014-07-21 01:48:24 +04:00
|
|
|
lowerCaseName: Ember.computed('name', function () {
|
|
|
|
return this.get('name').toLocaleLowerCase();
|
|
|
|
})
|
|
|
|
});
|