Add genus from config
This commit is contained in:
		
							parent
							
								
									886fda6843
								
							
						
					
					
						commit
						33f783bc42
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,10 +1,11 @@
 | 
			
		|||
import DS from 'ember-data';
 | 
			
		||||
import config from '../config/environment';
 | 
			
		||||
 | 
			
		||||
export default DS.Model.extend({
 | 
			
		||||
  speciesName: DS.attr('string'),
 | 
			
		||||
  typeSpecies: DS.attr('boolean'),
 | 
			
		||||
  etymology: DS.attr('string'),
 | 
			
		||||
  genusName: DS.attr('string'),
 | 
			
		||||
  genusName: DS.attr('string', { defaultValue: config.genus }),
 | 
			
		||||
  strains: DS.hasMany('strain', { async: true }),
 | 
			
		||||
  totalStrains: DS.attr('number'),
 | 
			
		||||
  createdAt: DS.attr('date'),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue