lib/cpee/persistence.rb in cpee-2.1.36 vs lib/cpee/persistence.rb in cpee-2.1.37
- old
+ new
@@ -30,10 +30,10 @@
Persistence::extract_item(id,opts,'attributes/uuid'),
Persistence::extract_item(id,opts,'attributes/info'),
{
:changed => values.keys,
:deleted => deleted,
- :values => values,
+ :values => values.transform_values{|val| JSON::parse(val) rescue val },
:attributes => ah.translate(attributes,dataelements,endpoints),
},
opts[:redis]
)
end #}}}