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/protected/species/edit/route.js
2015-11-04 13:05:03 -07:00

15 lines
405 B
JavaScript

import Ember from 'ember';
import ElevatedAccess from '../../../../mixins/elevated-access';
const { Route } = Ember;
export default Route.extend(ElevatedAccess, {
// Required for ElevatedAccess mixin
fallbackRouteBefore: 'protected.species.index',
fallbackRouteAfter: 'protected.species.show',
model: function(params) {
return this.store.findRecord('species', params.species_id);
},
});