From de18cfc94937cdee4b9dcaa188f206148c38065d Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 13 Jul 2015 08:29:53 -0800 Subject: [PATCH] Minor cleanup --- app/initializers/custom-session.js | 1 + app/pods/login/controller.js | 1 - app/pods/protected/species/new/route.js | 2 +- app/pods/protected/strains/new/route.js | 2 +- app/serializers/strain.js | 1 + 5 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/initializers/custom-session.js b/app/initializers/custom-session.js index 7c58420..c6a230a 100644 --- a/app/initializers/custom-session.js +++ b/app/initializers/custom-session.js @@ -1,5 +1,6 @@ import Session from 'simple-auth/session'; import parseBase64 from '../utils/parse-base64'; +import Ember from 'ember'; var CustomSession = Session.extend({ currentUser: function() { diff --git a/app/pods/login/controller.js b/app/pods/login/controller.js index fd1b966..70eca2b 100644 --- a/app/pods/login/controller.js +++ b/app/pods/login/controller.js @@ -1,5 +1,4 @@ import Ember from 'ember'; -import parseBase64 from '../../utils/parse-base64'; export default Ember.Controller.extend({ actions: { diff --git a/app/pods/protected/species/new/route.js b/app/pods/protected/species/new/route.js index 37be440..8c9caf9 100644 --- a/app/pods/protected/species/new/route.js +++ b/app/pods/protected/species/new/route.js @@ -14,7 +14,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, { }, actions: { - willTransition: function(transition) { + willTransition: function(/*transition*/) { let controller = this.get('controller'); let species = controller.get('model'); diff --git a/app/pods/protected/strains/new/route.js b/app/pods/protected/strains/new/route.js index d214671..cb601a3 100644 --- a/app/pods/protected/strains/new/route.js +++ b/app/pods/protected/strains/new/route.js @@ -21,7 +21,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, { }, actions: { - willTransition: function(transition) { + willTransition: function(/*transition*/) { let controller = this.get('controller'); let strain = controller.get('strain'); diff --git a/app/serializers/strain.js b/app/serializers/strain.js index 9fd16c7..ddadf39 100644 --- a/app/serializers/strain.js +++ b/app/serializers/strain.js @@ -1,4 +1,5 @@ import DS from 'ember-data'; +import Ember from 'ember'; export default DS.RESTSerializer.extend({ isNewSerializerAPI: true,