From 559e7c2951b2dbcc952efab22b18dbd7d423e65b Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Fri, 1 Aug 2025 18:42:53 +0200 Subject: [PATCH] Pluck country name instead of country --- app/controllers/map_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/map_controller.rb b/app/controllers/map_controller.rb index 5fcdabc1..82d9435f 100644 --- a/app/controllers/map_controller.rb +++ b/app/controllers/map_controller.rb @@ -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