ENH: Collection attachments (#51)

This commit is contained in:
Matthew Ryan Dillon 2017-12-01 10:58:17 -07:00 committed by GitHub
parent d014fc099c
commit 4903a204e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 217 additions and 16 deletions

View file

@ -5,7 +5,9 @@ const { Route, RSVP } = Ember;
export default Route.extend({
model(params) {
return RSVP.all([
this.get('store').findRecord('collection', params.collection_id)
this.get('store').findRecord('collection', params.collection_id, {
include: 'collection-species,datasheets',
})
]);
},
});