-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
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
Unable to deserialize recursively #71
Comments
We are seeing the same problem while attempting to upgrade one of our services to Ruby 3 as well. (Thanks for posting this - great timing!) |
It looks like Something like this may help: class RecursiveOpenStruct
# …
def marshal_load(attributes)
@options ||= {}
@sub_elements ||= {}
self.class.default_options.keys.each do |option|
@options[option] = attributes.delete(option) if attributes.key?(option)
end
@deep_dup = DeepDup.new(@options)
super
end
end Note: I have never written one of these |
Hi there! I believe this could be similar to this open issue: #69 but I figure I'd make one for our use case.
It seems like we are unable to
We are trying to upgrade our application to Ruby 3 but we are relying on this behaviour to work. Since it is broken on the latest version we cannot upgrade.
The text was updated successfully, but these errors were encountered: