Add genus from config

This commit is contained in:
Matthew Dillon 2015-06-04 10:33:08 -08:00
parent 886fda6843
commit 33f783bc42

View file

@ -1,10 +1,11 @@
import DS from 'ember-data'; import DS from 'ember-data';
import config from '../config/environment';
export default DS.Model.extend({ export default DS.Model.extend({
speciesName: DS.attr('string'), speciesName: DS.attr('string'),
typeSpecies: DS.attr('boolean'), typeSpecies: DS.attr('boolean'),
etymology: DS.attr('string'), etymology: DS.attr('string'),
genusName: DS.attr('string'), genusName: DS.attr('string', { defaultValue: config.genus }),
strains: DS.hasMany('strain', { async: true }), strains: DS.hasMany('strain', { async: true }),
totalStrains: DS.attr('number'), totalStrains: DS.attr('number'),
createdAt: DS.attr('date'), createdAt: DS.attr('date'),