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/characteristics/edit/route.js
2015-11-05 14:05:57 -07:00

15 lines
435 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.characteristics.index',
fallbackRouteAfter: 'protected.characteristics.show',
model: function(params) {
return this.store.findRecord('characteristic', params.characteristic_id);
},
});