We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a problem with the sorting the enum keys. I think the hash of keys should be in the assignment order. So my suggestion is to change:
class EnumHash < ::Hash
to
class EnumHash < ::ActiveSupport::OrderedHash
or something similar.
PS. Right now I'm doing something like that:
Price.names.values.sort.map do |name| name = Price.names.invert[name] # here is the code end
The text was updated successfully, but these errors were encountered:
mhh, good point... feel free to go ahead, test & implement it
Sorry, something went wrong.
ps: i'm working on it
fixed, ebfd101
Wow, so fast. Thanks!
No branches or pull requests
I have a problem with the sorting the enum keys. I think the hash of keys should be in the assignment order. So my suggestion is to change:
to
or something similar.
PS. Right now I'm doing something like that:
The text was updated successfully, but these errors were encountered: