Ensure address to_s never returns nil
This commit is contained in:
parent
ca2ae3452b
commit
5a7312f775
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class Champs::AddressChamp < Champs::TextChamp
|
|||
end
|
||||
|
||||
def to_s
|
||||
address_label
|
||||
address_label.presence || ''
|
||||
end
|
||||
|
||||
def for_tag
|
||||
|
|
Loading…
Reference in a new issue