Another attempt at managing region with a parent one...

remotes/origin/master
echarp 5 years ago
parent 93802ce575
commit ad01be89c4
  1. 4
      app/models/event.rb

@ -87,8 +87,8 @@ class Event < ApplicationRecord
def full_address
# Only uses the region if it is a sub-region and not a country
[address, city, region, region.try(:region) ? region.try(:region) : nil]
.compact.join ', '
[address, city, region.try(:region).present? ? region : nil,
region.try(:region)].compact.join ', '
end
def hashtags

Loading…
Cancel
Save