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

New Method underscore_without_question_mark to get rid of question marks #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DTrierweiler
Copy link

New Method underscore_without_question_mark to get rid of question marks in boolean methods.

I followed the discussion in the active_model_serializers project, but the solutions there are only valid for <= 0.10.2.
I guess there are more elegant ways to do this, but for this the code in active_model_serializers would need adjustment as well (e.g. pass an options hash to the CamelCase.transform method at https://github.com/rails-api/active_model_serializers/blob/v0.10.4/lib/active_model_serializers/adapter/base.rb#L34).

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

Successfully merging this pull request may close these issues.

1 participant