Closed benmonro closed 8 years ago
My work around was to prepend the keys with 'tz' and then add a transformer to the field. Not the best solution. Are there any other options?
Just realized I can set the options in the UI rather than setting them in the enum in the model.
I have in my form a select box for a list of time zones. The timezones are represented in our code using an array of arrays in order to ensure the order of the timezones is properly displayed.
It seems that t.enums expects things to be in a map format. However when I convert this array into a map, the order of the options is then sorted by the numerical value. Is there a way to work around this so that the order is preserved?