This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/strains/new/route.js
Matthew Dillon 0d840b4586 Housekeeping
2015-06-14 20:48:58 -08:00

14 lines
428 B
JavaScript

import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
model: function() {
return Ember.RSVP.hash({
strain: this.store.createRecord('strain'),
species: this.store.findAll('species')
});
},
setupController: function(controller, models) {
controller.setProperties(models);
},
});