Updated Locations controller with id in json api

This commit is contained in:
saurabhbhatia 2013-10-09 09:19:05 +00:00
parent 363ea53861
commit ee2adf2121
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ class Panel::Location::BackEnd::LocationsController < OrbitBackendController
picurl = location.file.blank? ? '' : "http://#{request.host_with_port + location.file.url}"
thumburl = location.file.blank? ? '' : "http://#{request.host_with_port + location.file.thumb.url}"
@data << { name: location.name,
@data << { id: location.id.to_s,
name: location.name,
pic_url: picurl,
thumb_url: thumburl,
longitude: location.longitude,