emberjs/ember.js — pull request #3383 by alexspeller (2013-09-10 23:23:20+00:00)
Title: Adjust query params param order

This is what was discussed with @wycats on twitter and IRC. The summary is:

If your route has query params specified:

```javascript
App.IndexRoute = Ember.Route.extend({
beforeModel: function( queryParams, transition ) {},
model: function( params, queryParams, transition ) {},
afterModel: function( resolvedModel, queryParams, transition ) {}
});
```

If your route does not have query params specified:

```javascript
App.IndexRoute = Ember.Route.extend({
beforeModel: function( transition ) {},
model: function( params, transition ) {},
afterModel: function( resolvedModel, transition ) {}
});
```

This is backwards compatible, a better long term api, and needs no flag setting.

This PR really just updates the tests. The meat of this is in tildeio/router.js#50 (the updated router.js is included here).