uhees-php_serialize 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/php_serialize.rb +2 -3
- metadata +1 -1
data/lib/php_serialize.rb
CHANGED
|
@@ -276,10 +276,9 @@ private
|
|
|
276
276
|
else # Nope; see if there's a Constant
|
|
277
277
|
begin
|
|
278
278
|
classmap[klass] = val = Module.const_get(klass)
|
|
279
|
-
|
|
280
279
|
val = val.new
|
|
281
|
-
rescue NameError #
|
|
282
|
-
classmap[klass] = val =
|
|
280
|
+
rescue NameError # Last resort: make a new OpenStruct
|
|
281
|
+
classmap[klass] = val = OpenStruct
|
|
283
282
|
val = val.new
|
|
284
283
|
end
|
|
285
284
|
end
|