mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Pluck country name instead of country
This commit is contained in:
parent
5224daeddc
commit
559e7c2951
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class MapController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_coordinates
|
def build_coordinates
|
||||||
@points.pluck(:lonlat, :battery, :altitude, :timestamp, :velocity, :id, :country, :track_id)
|
@points.pluck(:lonlat, :battery, :altitude, :timestamp, :velocity, :id, :country_name, :track_id)
|
||||||
.map { |lonlat, *rest| [lonlat.y, lonlat.x, *rest.map(&:to_s)] }
|
.map { |lonlat, *rest| [lonlat.y, lonlat.x, *rest.map(&:to_s)] }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue