/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-simple-auth',

  included: function(app) {
    this._super.included(app);

    app.import('vendor/ember-simple-auth/register-version.js');
  }
};

/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-simple-auth',

  included: function(app) {
    this._super.included.apply(this, arguments);

    // see: https://github.com/ember-cli/ember-cli/issues/3718
    if (typeof app.import !== 'function' && app.app) {
      app = app.app;
    }

    app.import('vendor/ember-simple-auth/register-version.js');
  }
};

Allow for nesting ember-simple-auth in another addon
Allow for nesting ember-simple-auth in another addon