Clean up strain-species relationship
This commit is contained in:
parent
afcf24a8d8
commit
f3aaa4739d
9 changed files with 29 additions and 11 deletions
|
@ -2,6 +2,6 @@ import Ember from 'ember';
|
|||
|
||||
export default Ember.Route.extend({
|
||||
model: function() {
|
||||
return this.modelFor('strains/show').get('measurements');
|
||||
return this.modelFor('strains/show').strain.get('measurements');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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')
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Reference in a new issue