Updated Locations controller with id in json api
This commit is contained in:
1 parent
363ea53861
commit
ee2adf2121
1 file changed
+2
-1
Vendored
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user