Ensure address to_s never returns nil

This commit is contained in:
Paul Chavard 2021-04-08 16:43:45 +01:00
parent ca2ae3452b
commit 5a7312f775

View file

@ -39,7 +39,7 @@ class Champs::AddressChamp < Champs::TextChamp
end end
def to_s def to_s
address_label address_label.presence || ''
end end
def for_tag def for_tag