Skip to content

Commit

Permalink
feat: 3.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Jan 26, 2019
1 parent 202f8f3 commit 431491c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';

import Controller from '@ember/controller';
import { alias } from '@ember/object/computed';

const App = Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Expand All @@ -11,4 +14,10 @@ const App = Application.extend({

loadInitializers(App, config.modulePrefix);

// Maintain compatibility w/ ember 1.13 -> 3.7.1 and beyond
// https://www.emberjs.com/deprecations/v2.x/#toc_controller-content-alias
Controller.reopen({
content: alias('model')
});

export default App;

0 comments on commit 431491c

Please sign in to comment.