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

AR Enum support in resource models #2209

Closed
robinboening opened this issue Nov 5, 2021 · 2 comments
Closed

AR Enum support in resource models #2209

robinboening opened this issue Nov 5, 2021 · 2 comments

Comments

@robinboening
Copy link
Contributor

robinboening commented Nov 5, 2021

Is your feature request related to a problem? Please describe.
A resource model in Alchemy integrates nicely in the CRUD views. If my model has an enum defined it is treated as an integer (which makes sense as it is an integer column in the db).

Describe the solution you'd like
It would be nice if we would support ActiveRecord enums so that the forms actually renders a select box for the different values in a human friendly way.

I think I could quickly come up with a PR for this.

@tvdeyen
Copy link
Member

tvdeyen commented Feb 11, 2022

Please do. I like that idea.

@robinboening
Copy link
Contributor Author

Resolved by #2210. Closing.

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

No branches or pull requests

2 participants