summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-10-06 17:10:46 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2020-10-06 17:11:08 -0400
commit1486785a5759c5cb0b7a7bf0bc5368cc9a280191 (patch)
treec19e72f0df77dd3eb14cf9ad17937fd0a7fcc288 /lib
parent260322fbc58a225d1c0323d53698ff62a31cf552 (diff)
[lib/ostruct] Fix Marshal loading
Diffstat (limited to 'lib')
-rw-r--r--lib/ostruct.rb5
1 files changed, 1 insertions, 4 deletions
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