diff --git a/lib/recursive_open_struct.rb b/lib/recursive_open_struct.rb index 683f9db..debbeab 100644 --- a/lib/recursive_open_struct.rb +++ b/lib/recursive_open_struct.rb @@ -41,6 +41,7 @@ def initialize(hash=nil, passed_options={}) def marshal_load(attributes) hash, @options = attributes + @deep_dup = DeepDup.new(@options) @sub_elements = {} super(hash) end