Improve example for `addStorePluralization`.
This commit is contained in:
parent
ce5867cce2
commit
dd0260e435
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue