emberjs / emberjs/ember-inflector

Pluralizing the word 'gas'

Open
#91 17 comments 0 reactions 0 assignees View on GitHub
docs
Dominant language
TypeScript
Stars
107
Forks
78
Avg merge
20h 58m
Merged PRs (30d)
4

Description

Hi!

I've been working on an Ember Project (EmberCLI 1.13.8, Ember 2.0, Ember Data 2.0), and I've created a model 'gas'.

When using ember-data to query the store. `this.store.query('gas')` the url that's built is `/api/gas`instead of what I expected, which would be `/api/gases`. I've created a custom adapter to deal with the situation, but I think this might be a problem with the ember-inflector.

I've created an [Ember Twiddle to show the issue](http://ember-twiddle.com/693a61eed139ab8f8d56)

Any thoughts? Thanks for the project!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `this.store.query('gas')` case from the linked Ember Twiddle and inspect how ember-inflector derives the `/api/gas` URL. Done means the inflector produces the expected plural form `/api/gases` without requiring the custom adapter described in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.