You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an older project, just updated to rails 6.1 and ruby 3. However, I am seeing an issue when trying to read the values from here, and not sure why
Ah, think I figured it out. I had include Ruby::Enum in the superclass PostMediaType, even though I put it here to try and simplify it. The @_enum_hash seems to have not been accessible that way. Moving include Ruby::Enum into every subclass directly, and removing from the super class works again.
dblock
changed the title
NoMethodError: undefined method `values' for nil ?
Add support for sub/superclasses (NoMethodError: undefined method `values' for nil ?)
Aug 14, 2024
I have an older project, just updated to rails 6.1 and ruby 3. However, I am seeing an issue when trying to read the values from here, and not sure why
It doesn't appear that the
values
method is working correctly, but I can't see why.The text was updated successfully, but these errors were encountered: