pluralize a little smarter #463

Closed
wants to merge 1 commit into
from

5 participants

@mehulkar

No description provided.

@trek
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

@mehulkar

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

@stefanpenner
Ember.js member

@tim-evans i need to send a PR or make it a standalone plugin, but this might be useful. https://github.com/stefanpenner/ember.js/tree/inflector

@tim-evans

IMO, I'd make this a standalone plugin. SC does this (https://github.com/sproutcore/sproutcore/blob/master/frameworks/foundation/system/string.js). I think the best approach would be to take the SC code and convert it to Ember code.

@tomdale
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