Skip to content

Commit

Permalink
[DOC] Fix markup for example code of DS.Model#inverseFor
Browse files Browse the repository at this point in the history
  • Loading branch information
tricknotes committed Mar 6, 2017
1 parent 730b484 commit 2219c39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addon/-private/system/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,10 @@ Model.reopenClass({
});
```
store.modelFor('post').inverseFor('comments', store) -> { type: App.Message, name: 'owner', kind: 'belongsTo' }
store.modelFor('message').inverseFor('owner', store) -> { type: App.Post, name: 'comments', kind: 'hasMany' }
``` js
store.modelFor('post').inverseFor('comments', store) // { type: App.Message, name: 'owner', kind: 'belongsTo' }
store.modelFor('message').inverseFor('owner', store) // { type: App.Post, name: 'comments', kind: 'hasMany' }
```
@method inverseFor
@static
Expand Down

0 comments on commit 2219c39

Please sign in to comment.