lib/wcc/contentful/store/postgres_store.rb in wcc-contentful-0.3.0 vs lib/wcc/contentful/store/postgres_store.rb in wcc-contentful-0.4.0.pre.alpha
- old
+ new
@@ -107,12 +107,12 @@
resolve.each do |row|
arr << yield(
resolve_includes(
JSON.parse(row['data']),
@options[:include]
- )
)
+ )
end
arr
end
def result
@@ -120,10 +120,10 @@
resolve.each do |row|
arr <<
resolve_includes(
JSON.parse(row['data']),
@options[:include]
- )
+ )
end
arr
end
# TODO: override resolve_includes to make it more efficient