lib/onsi/resource.rb in onsi-1.0.1 vs lib/onsi/resource.rb in onsi-1.1.0
- old
+ new
@@ -235,10 +235,10 @@
when Array
root[key] = {}.tap do |subobj|
subobj[DATA_KEY] = included.map do |inc|
{
TYPE_KEY => inc[TYPE_KEY],
- ID_KEY => inc[ID_KEY]
+ ID_KEY => inc[ID_KEY]
}
end
end
when Hash
root[key] = { DATA_KEY => { TYPE_KEY => included[TYPE_KEY], ID_KEY => included[ID_KEY] } }