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

Does not work with Rails 6.1 #152

Open
olegsfinest opened this issue May 25, 2023 · 1 comment
Open

Does not work with Rails 6.1 #152

olegsfinest opened this issue May 25, 2023 · 1 comment

Comments

@olegsfinest
Copy link

The translate_enum ViewHelper method is not working anymore.
This is due to the I18n.translate call in human_enum_name of SimpleEnum::Translation is calling I18n.translate incompatibly.

I have not checked since which Rails version this is the case, as this gem seems prettz abandoned anyways.
Documenting this anyways, also for others having this issue or potential users considering using this gem.

@lwe
Copy link
Owner

lwe commented Jun 14, 2023

Hey @olegsfinest thanks a lot for the report, I'll happily accept a PR to fix this. You are correct, this is pretty abandoned currently as my day job no longer involves Rails nor coding, probably should update the README, thanks for understanding. In addition, Rails since v5 added enum attributes, inspired by this gem. ;-)

https://api.rubyonrails.org/v5.1/classes/ActiveRecord/Enum.html

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