/* eslint-env node */
'use strict';

module.exports = {
  name: 'ember-cli-chart',
  included: function included(app) {
   this._super.included(app);
   app.import(app.bowerDirectory + '/chartjs/dist/Chart.js');
  }
};

/* eslint-env node */
'use strict';

module.exports = {
  name: 'ember-cli-chart',
  included: function(app, parentAddon) {
    this._super.included.apply(this, arguments);
    
    var target = (parentAddon || app);
    if (target.app) {
      target = target.app;
    }
    
    var bowerDir = target.bowerDirectory;
    app.import(bowerDir + '/chartjs/dist/Chart.js');
  }
};

Allow usage in nested addons