Skip to content
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

Unintuitive Inflector Behavior #59

Closed
klobuczek opened this issue Jun 28, 2019 · 2 comments
Closed

Unintuitive Inflector Behavior #59

klobuczek opened this issue Jun 28, 2019 · 2 comments

Comments

@klobuczek
Copy link

You might want to consider using capitalize instead of capitalize! in Inflector.
capitalize! returns nil if nothing has been changed which causes an entire part of the name to be swallowed.
e.g. point_3d_value is camelized to PointValue

@fxn
Copy link
Owner

fxn commented Jun 28, 2019

The inflector is extremely delicate, but I agree, and doubt is going to break existing code.

@fxn fxn closed this as completed in 892c1d3 Jun 28, 2019
@fxn
Copy link
Owner

fxn commented Jun 28, 2019

Just published 2.1.7 including this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants