Skip to content

Commit

Permalink
Merge pull request #16877 from camerondubas/fix/allow-array-route
Browse files Browse the repository at this point in the history
[CLEANUP] Allow routes to be named "array" and "object"
  • Loading branch information
locks committed Aug 13, 2018
2 parents 47aa3e4 + 65d66c8 commit ca4d13c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ember-routing/lib/system/dsl.js
Expand Up @@ -26,7 +26,7 @@ class DSL {
return true;
}

return ['array', 'basic', 'object', 'application'].indexOf(name) === -1;
return ['basic', 'application'].indexOf(name) === -1;
})()
);

Expand Down
2 changes: 1 addition & 1 deletion packages/ember-routing/tests/system/dsl_test.js
Expand Up @@ -17,7 +17,7 @@ moduleFor(
}

['@test should fail when using a reserved route name'](assert) {
let reservedNames = ['array', 'basic', 'object', 'application'];
let reservedNames = ['basic', 'application'];

assert.expect(reservedNames.length);

Expand Down

0 comments on commit ca4d13c

Please sign in to comment.