2017-02-21 21:28:44 +03:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
|
|
|
|
|
|
|
export default Model.extend({
|
|
|
|
name: attr('string'),
|
2017-03-03 18:31:42 +03:00
|
|
|
package: attr('raw'),
|
|
|
|
active: attr('boolean'),
|
|
|
|
warnings: attr('raw'),
|
|
|
|
|
|
|
|
activate() {
|
|
|
|
let adapter = this.store.adapterFor(this.constructor.modelName);
|
|
|
|
return adapter.activate(this);
|
|
|
|
}
|
2017-02-21 21:28:44 +03:00
|
|
|
});
|