Address generated for OSM geocoding is now using country name and not code

This commit is contained in:
echarp 2017-10-08 11:37:02 +02:00
parent 418930387f
commit b860fa7035
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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