From 1486785a5759c5cb0b7a7bf0bc5368cc9a280191 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Tue, 6 Oct 2020 17:10:46 -0400 Subject: [lib/ostruct] Fix Marshal loading --- lib/ostruct.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/ostruct.rb b/lib/ostruct.rb index cc82d59e76..45ccb54925 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -202,10 +202,7 @@ class OpenStruct # # Provides marshalling support for use by the Marshal library. # - def marshal_load(x) # :nodoc: - x.each_key{|key| new_ostruct_member!(key)} - @table = x - end + alias_method :marshal_load, :update_to_values! # :nodoc: # # Used internally to defined properties on the -- cgit v1.2.3