Remove duplicate mixins

This commit is contained in:
Matthew Dillon 2015-07-14 08:02:49 -08:00
parent cd082ef616
commit 60f518d911
9 changed files with 9 additions and 18 deletions

View file

@ -1,4 +1,3 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin);
export default Ember.Route.extend({});

View file

@ -1,7 +1,6 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
export default Ember.Route.extend({
model: function() {
return this.store.findAll('characteristic');
},

View file

@ -1,7 +1,6 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
export default Ember.Route.extend({
beforeModel: function(transition) {
this._super(transition);
this.transitionTo('protected.compare');

View file

@ -1,4 +1,3 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {});
export default Ember.Route.extend({});

View file

@ -1,7 +1,6 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
export default Ember.Route.extend({
afterModel: function(species) {
if (!species.get('canEdit')) {
this.transitionTo('species.show', species.get('id'));

View file

@ -1,7 +1,6 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
export default Ember.Route.extend({
beforeModel: function(transition) {
this._super(transition);
if (this.get('session.currentUser.role') === 'R') {

View file

@ -1,7 +1,6 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
export default Ember.Route.extend({
model: function(params) {
return this.store.findRecord('species', params.species_id, { reload: true });
},

View file

@ -1,7 +1,6 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
export default Ember.Route.extend({
model: function() {
return this.store.findAll('strain');
},

View file

@ -1,7 +1,6 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
export default Ember.Route.extend({
beforeModel: function(transition) {
this._super(transition);
if (this.get('session.currentUser.role') === 'R') {