Another attempt at managing region with a parent one...
This commit is contained in:
parent
93802ce575
commit
ad01be89c4
@ -87,8 +87,8 @@ class Event < ApplicationRecord
|
|||||||
|
|
||||||
def full_address
|
def full_address
|
||||||
# Only uses the region if it is a sub-region and not a country
|
# Only uses the region if it is a sub-region and not a country
|
||||||
[address, city, region, region.try(:region) ? region.try(:region) : nil]
|
[address, city, region.try(:region).present? ? region : nil,
|
||||||
.compact.join ', '
|
region.try(:region)].compact.join ', '
|
||||||
end
|
end
|
||||||
|
|
||||||
def hashtags
|
def hashtags
|
||||||
|
Loading…
Reference in New Issue
Block a user