lib/openwfe/storage/yamlcustom.rb in openwferu-0.9.15 vs lib/openwfe/storage/yamlcustom.rb in openwferu-0.9.16

- old
+ new

@@ -80,18 +80,20 @@ #def to_yaml_properties # [ "@s" ] #end def to_yaml (opts={}) + YAML::quick_emit(self.object_id, opts) do |out| out.map(taguri) do |map| map.add("s", to_s) end end end def FlowExpressionId.yaml_new (klass, tag, val) + s = val["s"] begin FlowExpressionId.to_fei(s) rescue Exception => e raise "failed to decode FlowExpressionId out of '#{s}'" @@ -101,9 +103,10 @@ # # opening for tuning yaml persistence # class XmlRawExpression + def to_yaml_properties l = super() l.delete("@raw_representation") l end