lib/contentful_middleman/mappers/base.rb in contentful_middleman-1.3.1 vs lib/contentful_middleman/mappers/base.rb in contentful_middleman-1.3.2

- old
+ new

@@ -62,9 +62,12 @@ def map_entry_full(entry, context) context.id = entry.id fields = has_multiple_locales? ? entry.fields_with_locales : entry.fields + # Prevent entries with no values from breaking the import + fields ||= [] + fields.each {|k, v| map_field context, k, v} end def map_entry(entry) context = Context.new