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

Make it configurable to return either string or atom #1

Open
gjaldon opened this issue Jul 8, 2015 · 4 comments
Open

Make it configurable to return either string or atom #1

gjaldon opened this issue Jul 8, 2015 · 4 comments

Comments

@gjaldon
Copy link
Owner

gjaldon commented Jul 8, 2015

Right now, we just return atoms whenever we call user.status. We could accept an option in defenum so that user.status will return either string or atom instead.

@kfigiela
Copy link

👍

Any updates on that?

@smartepsh
Copy link

smartepsh commented May 21, 2018

Our project uses both ecto_enum and exnumerator to get different types of value depending on what you defined.

you can have a try.

@acrolink
Copy link

Would be also helpful to get either the string or the integer as it is stored in the database. Especially in Ecto select.

@ijunaid8989
Copy link

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

5 participants