-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support dasherized multi-word names? #61
Comments
https://github.com/stefanpenner/ember-inflector/pull/41/files seems to already do this? Or maybe i need further clarification. |
@kbullaughey do you have 2 verison of ember-inflector ? ember-data does bring one with as-well... |
Hm...seems I'm using the ember-data, whichever is packaged with ember-data 1.0.0-beta.14.1. |
I added some tests to a branch in my forked copy. Here's a diff. I get the following failures in testem:
Importantly, it only fails if there's a singularization rule (as is the case when using ember data). I am declaring I haven't looked into the cause of the problem yet. |
When using ember-cli, it seems like it would be helpful to support the same inflection patterns for dasherized and undasherized names. Instead, I find myself doing the following:
Of course, if I always wanted anything ending in
tones
to be uncountable, then I could just register the last word, but sometimes it's only class names that I want to be uncountable (i.e., in the case where each record represents a plural set of things).Does the inflector know about word boundaries as presented in camelCase? This is a little tricky because of all-caps acronyms. Perhaps it could work as follows. If one registers the
phrase-tones
case then it also registers the phraseTones case, but not viceversa.The text was updated successfully, but these errors were encountered: