Improve example for `addStorePluralization`.

This commit is contained in:
Guo Xiang Tan 2016-05-17 11:23:32 +08:00
parent ce5867cce2
commit dd0260e435
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
1 changed files with 11 additions and 1 deletions

View File

@ -295,7 +295,17 @@ class PluginApi {
/**
* Adds a pluralization to the store
* api.addPluralization('mouse', 'mice')
*
* Example:
*
* ```javascript
* api.addStorePluralization('mouse', 'mice');
* ```
*
* ```javascript
* this.store.find('mouse');
* ```
* will issue a request to `/mice.json`
**/
addStorePluralization(thing, plural) {
this.container.lookup("store:main").addPluralization(thing, plural);