lib/wcc/contentful/middleware/store.rb in wcc-contentful-1.0.8 vs lib/wcc/contentful/middleware/store.rb in wcc-contentful-1.1.0
- old
+ new
@@ -53,10 +53,11 @@
end
def resolve_includes(entry, depth)
return entry unless entry && depth && depth > 0
- WCC::Contentful::LinkVisitor.new(entry, :Link, depth: depth).map! do |val|
+ # We only care about entries (see #resolved_link?)
+ WCC::Contentful::LinkVisitor.new(entry, :Entry, depth: depth).map! do |val|
resolve_link(val)
end
end
def resolve_link(val)