lib/contentful_middleman/mappers/base.rb in contentful_middleman-2.1.2 vs lib/contentful_middleman/mappers/base.rb in contentful_middleman-2.1.3
- old
+ new
@@ -114,14 +114,18 @@
@children[:queue].push({ :context => context, :entry => entry})
context
end
def map_location(location)
- location.properties
+ context = Context.new
+ context.lat = location.lat
+ context.lon = location.lon
+
+ context
end
def map_link(link)
- context = Context.new
+ context = Context.new
context.id = link.id
context
end