Skip to content

Commit

Permalink
Allow routes to be named "array"
Browse files Browse the repository at this point in the history
  • Loading branch information
camerondubas committed Aug 11, 2018
1 parent 47aa3e4 commit f099d63
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DSL {
return true;
}

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

Expand Down
2 changes: 1 addition & 1 deletion packages/ember-routing/tests/system/dsl_test.js
Original file line number Diff line number Diff line change
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', 'object', 'application'];

assert.expect(reservedNames.length);

Expand Down

0 comments on commit f099d63

Please sign in to comment.