Simplification

This commit is contained in:
echarp 2019-04-19 14:56:00 +02:00
parent ff9cec213b
commit b83ddff550

View File

@ -10,7 +10,7 @@ json.array!(@events) do |event|
place_name: event.place_name, address: event.address, city: event.city,
region: event.region.name, region_id: event.region_id,
tags: event.tag_list,
popupContent: "<a href=\"/events/#{event.id}\">#{event}</a>"
popupContent: link_to(event, event)
},
geometry: {
type: 'Point',