Merge pull request #2613 from consul/fixup_investments_map

Fix MapLocation json_data to return mappable ids
This commit is contained in:
Alberto Calderón Queimadelos
2018-04-25 21:15:21 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ App.Map =
for i in addMarkerInvestments
if App.Map.validCoordinates(i)
marker = createMarker(i.lat, i.long)
marker.options['id'] = i.id
marker.options['id'] = i.investment_id
marker.on 'click', openMarkerPopup

View File

@@ -11,7 +11,8 @@ class MapLocation < ActiveRecord::Base
def json_data
{
id: id,
investment_id: investment_id,
proposal_id: proposal_id,
lat: latitude,
long: longitude
}