mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -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
|
||||
|
||||
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)] }
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue