ENH: Refactor hasMany relations (#59)

Fixes #52
This commit is contained in:
Matthew Ryan Dillon 2017-12-04 05:32:39 -07:00 committed by GitHub
parent af9ac976dc
commit 4dbfcfa98b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 53 deletions

View file

@ -11,6 +11,8 @@ export default Controller.extend(ValidationMixin, {
CollectionSpeciesValidations,
DatasheetValidations,
hasMany: ['collectionSpecies', 'datasheets'],
options: computed('projectOptions', 'studyLocationOptions',
'collectionTypeOptions', 'collectionMethodOptions',
'speciesOptions', 'adfgPermitOptions', function() {

View file

@ -11,6 +11,8 @@ export default Controller.extend(ValidationMixin, {
CollectionSpeciesValidations,
DatasheetValidations,
hasMany: ['collectionSpecies', 'datasheets'],
options: computed('projectOptions', 'studyLocationOptions',
'collectionTypeOptions', 'collectionMethodOptions',
'speciesOptions', 'adfgPermitOptions', function() {