lib/contentful/resource_builder.rb in contentful-0.10.0 vs lib/contentful/resource_builder.rb in contentful-0.11.0
- old
+ new
@@ -67,11 +67,12 @@
create_included_resources! response.object['includes']
@resource = create_resource(response.object)
unless @included_resources.empty?
replace_links_in_included_resources_with_known_resources
- replace_links_with_known_resources @resource
end
+
+ replace_links_with_known_resources @resource
@resource
rescue UnparsableResource => error
error
end