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

Generate human rails enum #29

Open
ldlsegovia opened this issue Sep 8, 2021 · 0 comments
Open

Generate human rails enum #29

ldlsegovia opened this issue Sep 8, 2021 · 0 comments

Comments

@ldlsegovia
Copy link
Member

Something like this: https://github.com/platanus/human_attributes#enumerize
but using Rails enum: https://api.rubyonrails.org/v5.2.6/classes/ActiveRecord/Enum.html

humanize :state, rails_enum: true

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

No branches or pull requests

1 participant