X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b7432e943222d5499d135afb4f6431ed4c3c988d..81bac0b09b2d03de76c8885f6d77c9297a3ead34:/app/models/concerns/geo_record.rb diff --git a/app/models/concerns/geo_record.rb b/app/models/concerns/geo_record.rb index 23101856a..bd96e0ff3 100644 --- a/app/models/concerns/geo_record.rb +++ b/app/models/concerns/geo_record.rb @@ -9,7 +9,7 @@ module GeoRecord format("%.7f", :coord => self) end - def as_json(_) + def as_json(*) format("%.7f", :coord => self).to_f end end