UNPKG

torii

Version:

A set of clean abstractions for authentication in Ember.js

24 lines (20 loc) 539 B
/* eslint-env node */ 'use strict'; module.exports = { name: 'torii', included: function(app) { var hostApp = this._findApp(app); var toriiConfig = hostApp.project.config(app.env)['torii']; if (!toriiConfig && hostApp === app) { console.warn('Torii is installed but not configured in config/environment.js!'); // eslint-disable-line } this._super.included(app); }, _findApp: function(hostApp) { var app = this.app || hostApp; while (app.app) { app = app.app; } return app; } };