app/models/qdm/attributes/attribute.rb in cqm-models-3.0.0 vs app/models/qdm/attributes/attribute.rb in cqm-models-3.0.1
- old
+ new
@@ -28,9 +28,10 @@
class << self
# Get the object as it was stored in the database, and instantiate
# this custom class from it.
def demongoize(object)
return nil unless object
+
object = object.symbolize_keys
if object.is_a?(Hash)
# This will turn the object into the concrete type eg: facilityLocation
data_element = QDM.const_get(object[:_type]).new
data_element.attribute_names.each do |field|