emberjs/ember.js — pull request #9308 by ZenCocoon (2014-10-11 22:05:02+00:00)
Title: [BUGFIX beta] Fix substates for nested routes and auto-generated index routes

Including refactoring to avoid duplication which felt responsible for the initial error.

Before this patch substates on nested routes would not reset namespaces, which could lead to:

**Router**
```js
this.route('foo', function() {
this.route('bar');
});
```

**Generated route**
`foo.bar.foo.bar_loading`

Auto-generated index routes did not support substates, this fix add such support to them.