Permalink
Browse files

Remove top-level Ember imports from generated authenticators (#1055)

`Ember` is not used in any of the generated authenticators and only makes jshint sad.
  • Loading branch information...
1 parent bfbaa8b commit aaa91169a94933c4813e0cee393d97d8f2c686dd @balinterdi balinterdi committed with marcoow Aug 18, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 blueprints/authenticator/index.js
@@ -15,25 +15,25 @@ module.exports = {
if (baseClass === 'torii') {
return {
- imports: 'import Ember from \'ember\';' + EOL + 'import Torii from \'ember-simple-auth/authenticators/torii\';',
+ imports: 'import Torii from \'ember-simple-auth/authenticators/torii\';',
baseClass: 'Torii',
body: EOL + ' torii: Ember.inject.service(\'torii\')'
};
} else if (baseClass === 'oauth2') {
return {
- imports: 'import Ember from \'ember\';' + EOL + 'import OAuth2PasswordGrant from \'ember-simple-auth/authenticators/oauth2-password-grant\';',
+ imports: 'import OAuth2PasswordGrant from \'ember-simple-auth/authenticators/oauth2-password-grant\';',
baseClass: 'OAuth2PasswordGrant',
body: ''
};
} else if (baseClass === 'devise') {
return {
- imports: 'import Ember from \'ember\';' + EOL + 'import Devise from \'ember-simple-auth/authenticators/devise\';',
+ imports: 'import Devise from \'ember-simple-auth/authenticators/devise\';',
baseClass: 'Devise',
body: ''
};
} else if (baseClass === 'base') {
return {
- imports: 'import Ember from \'ember\';' + EOL + 'import Base from \'ember-simple-auth/authenticators/base\';',
+ imports: 'import Base from \'ember-simple-auth/authenticators/base\';',
baseClass: 'Base',
body: EOL + ' restore(data) {' + EOL + ' },' + EOL + EOL + ' authenticate(/*args*/) {' + EOL + ' },' + EOL + EOL + ' invalidate(data) {' + EOL + ' }'
};

0 comments on commit aaa9116

Please sign in to comment.