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