Clean up strain-species relationship

This commit is contained in:
Matthew Dillon 2015-06-03 09:25:26 -08:00
parent afcf24a8d8
commit f3aaa4739d
9 changed files with 29 additions and 11 deletions

View file

@ -1,4 +1,10 @@
import Ember from 'ember';
export default Ember.Route.extend({
model: function(params) {
return Ember.RSVP.hash({
strain: this.store.find('strain', params.strain_id),
species: this.store.findAll('species')
});
}
});