lib/golden_fleece/context/export.rb in golden_fleece-0.1.5 vs lib/golden_fleece/context/export.rb in golden_fleece-1.0.0
- old
+ new
@@ -5,10 +5,10 @@
export_attributes = Array.wrap export_attributes
schemas.reduce({}) { |memo, (attribute, schema)|
if export_attributes.include? attribute
memo[attribute] = schema.reduce({}) { |memo, (schema_name, schema)|
- memo[schema_name] = schema.value.compute(record)
+ memo[schema_name.to_s] = schema.value.compute(record)
memo
}
end
memo
}