Skip to content

Commit

Permalink
Remove this.resource from RouterDSL
Browse files Browse the repository at this point in the history
  • Loading branch information
locks committed Jan 1, 2018
1 parent 2569225 commit 587c3fc
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/ember-routing/lib/system/dsl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assign } from 'ember-utils';
import { assert, deprecate } from 'ember-debug';
import { assert } from 'ember-debug';

let uuid = 0;

Expand Down Expand Up @@ -66,17 +66,6 @@ class DSL {
this.matches.push(url, name, callback);
}

resource(name, options = {}, callback) {
if (arguments.length === 2 && typeof options === 'function') {
callback = options;
options = {};
}

options.resetNamespace = true;
deprecate('this.resource() is deprecated. Use this.route(\'name\', { resetNamespace: true }, function () {}) instead.', false, { id: 'ember-routing.router-resource', until: '3.0.0' });
this.route(name, options, callback);
}

generate() {
let dslMatches = this.matches;

Expand Down

0 comments on commit 587c3fc

Please sign in to comment.