Skip to content

Commit

Permalink
Remove outdated model documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonkristan committed Oct 28, 2014
1 parent 3260c94 commit ee17c71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ember-routing/lib/system/route.js
Expand Up @@ -1176,7 +1176,7 @@ var Route = EmberObject.extend(ActionHandler, {
});
```
The model for the `post` route is `App.Post.find(params.post_id)`.
The model for the `post` route is `store.find('post', params.post_id)`.
By default, if your route has a dynamic segment ending in `_id`:
Expand Down Expand Up @@ -1219,7 +1219,7 @@ var Route = EmberObject.extend(ActionHandler, {
```js
App.PostRoute = Ember.Route.extend({
model: function(params) {
return App.Post.find(params.post_id);
return this.store.find('post', params.post_id);
}
});
```
Expand Down Expand Up @@ -1390,7 +1390,7 @@ var Route = EmberObject.extend(ActionHandler, {
```js
App.PhotosRoute = Ember.Route.extend({
model: function() {
return App.Photo.find();
return this.store.find('photo');
},
setupController: function (controller, model) {
Expand Down

0 comments on commit ee17c71

Please sign in to comment.