No description provided.
pluralize a little smarter
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.
@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
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.
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.