Skip to content

Commit

Permalink
Merge pull request #222 from SergeAstapov/document-pluralizedTypes
Browse files Browse the repository at this point in the history
[DOCS] Adds example about pluralizedTypes usage
  • Loading branch information
rwjblue committed Feb 7, 2018
2 parents 7f3fbcf + 000bc2b commit b2357af
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Expand Up @@ -68,6 +68,22 @@ package. By default, this app will be correctly configured.
* It builds an glimmer resolver config and passes it to the resolver.
* It starts with a `src/` based layout on disk.
## Configuration
To customize pluralization provide a `pluralizedTypes` object to your extended version of the Resolver in consuming app:
```js
# app/resolver.js
import Resolver from 'ember-resolver';

export default Resolver.extend({
pluralizedTypes: {
'sheep': 'sheep',
'strategy': 'strategies'
}
})
```
## Upgrading
`ember-resolver` is normally bumped with ember-cli releases. To install a newer
Expand Down

0 comments on commit b2357af

Please sign in to comment.