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

Access and set the underlaying Integer #24

Open
MSchmidt opened this issue Feb 6, 2025 · 2 comments
Open

Access and set the underlaying Integer #24

MSchmidt opened this issue Feb 6, 2025 · 2 comments

Comments

@MSchmidt
Copy link

MSchmidt commented Feb 6, 2025

Is there a way to read and write the underlaying integer? I'd like to use enummer for my rails-based stuff but in my JSON API i'd like to just send the Int as it is without the automatic conversion.

@MSchmidt
Copy link
Author

MSchmidt commented Feb 6, 2025

I've tested what I need for setting Int values here: MSchmidt@487b538

It just checks if the passed in value is already an integer and skips the casting.

@shkm
Copy link
Owner

shkm commented Feb 18, 2025

Hey @MSchmidt. Thanks for the PR! I've unfortunately not had time to look at this yet, but it is on my todo list!

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