Inheritable Attributes nil check? #787
Unanswered
MichaelBolton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After upgrading from Ruby 2.7 to Ruby 3.2, I started getting crash on this bit of code, somewhere around line 40 of module_inheritable_attributes.rb.
When @mattr_inheritable_attrs is nil, the iterator bombs out (which is a bit of a surprise to me; I'd assume it would simply do nothing and go along.
In my case, I worked around the issue by checking whether it's nil, and if so, skipping the iterator. Would that be the right fix?
Beta Was this translation helpful? Give feedback.
All reactions