From c37fc6f3cd8778df050012b4520baa738269fdd7 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 18 Mar 2018 18:20:11 +0100 Subject: [PATCH] Added region_id to the generated geojson --- app/models/event.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/event.rb b/app/models/event.rb index 1aac1a5d..0497c599 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -89,7 +89,8 @@ class Event < ApplicationRecord { type: 'Feature', properties: { id: id, name: title, start_time: start_time, end_time: end_time, submission_time: submission_time, decision_time: decision_time, - place_name: place_name, address: address, city: city, region: region.name, + place_name: place_name, address: address, city: city, + region: region.name, region_id: region_id, tags: tag_list, popupContent: "#{self}" }, geometry: { type: 'Point', coordinates: [longitude, latitude] } } end