From b860fa7035a5d05b4086892a490f9c5396ccda61 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 8 Oct 2017 11:37:02 +0200 Subject: [PATCH] Address generated for OSM geocoding is now using country name and not code --- app/models/event.rb | 2 +- app/models/orga.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/event.rb b/app/models/event.rb index ff77d918..c9264ba3 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -94,7 +94,7 @@ class Event < ApplicationRecord end def full_address - [address, city, region.try(:name), region.try(:code)].compact.join ', ' + [address, city, region, region.region].compact.join ', ' end def hashtags diff --git a/app/models/orga.rb b/app/models/orga.rb index 821dd8fc..6ec37bf5 100644 --- a/app/models/orga.rb +++ b/app/models/orga.rb @@ -92,7 +92,7 @@ class Orga < ApplicationRecord end def full_address - [address, city, region.try(:name), region.try(:code)].compact.join ', ' + [address, city, region, region.region].compact.join ', ' end def to_s