pluralize a little smarter #463

wants to merge 1 commit into

5 participants


No description provided.

Ember.js member

I almost wish we'd move RESTAdapter out of core or just label it as an example... but maybe I'm just bitter because my data needs are so crazy I can't use RESTAdapter


@trek I really like that idea actually. But if that were to happen a warning when starting the app would be nice.

Ember.js member

@tim-evans i need to send a PR or make it a standalone plugin, but this might be useful.


IMO, I'd make this a standalone plugin. SC does this ( I think the best approach would be to take the SC code and convert it to Ember code.

Ember.js member

Thanks for the pull request, but I'm going to have to decline this bad boy.

If we are going to do this, we should do it right and use a full-blown inflector library, like the one @stefanpenner mentioned above.

As much as I'd like to ship an inflector library with Ember, I think doing so would rank pretty high on the HHWWGT Index (How Hard Would We Get Trolled). We intentionally left this hook as dumb as possible so people will use something more appropriate for their needs.

There are some people who disagree with me, but whether it's built-in or available as a drop-in plugin, I think we need to use a battle-tested inflection library and not build it up ad-hoc.

@tomdale tomdale closed this Nov 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment