makandra/assignable_values

.to_json only gets the integer

minohimself opened this issue · 1 comments

If i use standard enum and .to_json i get the symbol as a string but i if i use assignable_values i get the integer value, i need to be sending the string as value in my json

assignable_values uses string fields to store the value. You cannot use it in combination with Rails' enums.