Skip to content

Commit

Permalink
Add renderTemplate deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
patocallaghan committed Feb 26, 2021
1 parent 8c85b2b commit 8eb00a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/@ember/-internals/routing/lib/system/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,15 @@ class Route extends EmberObject implements IRoute {
@public
*/
renderTemplate(_controller: any, _model: {}) {
deprecate('Usage of `renderTemplate` is deprecated.', false, {
id: 'route-render-template',
until: '4.0.0',
url: 'https://deprecations.emberjs.com/v3.x/#toc_route-render-template',
for: 'ember-source',
since: {
enabled: '3.27.0',
},
});
// eslint-disable-line no-unused-vars
this.render();
}
Expand Down

0 comments on commit 8eb00a1

Please sign in to comment.