Skip to content

Commit

Permalink
Merge pull request #4840 from tricknotes/fix-doc-markup
Browse files Browse the repository at this point in the history
[DOC] Fix markup for example code of `DS.Model#inverseFor`
  • Loading branch information
locks authored Mar 6, 2017
2 parents 730b484 + 2219c39 commit fcf0e39
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 fcf0e39

Please sign in to comment.