fix(commune): to_s should always return a string
This commit is contained in:
parent
12f0c03bac
commit
ed33f1916a
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class Champs::CommuneChamp < Champs::TextChamp
|
||||||
if code?
|
if code?
|
||||||
"#{APIGeoService.commune_name(code_departement, code)} (#{code_postal_with_fallback})"
|
"#{APIGeoService.commune_name(code_departement, code)} (#{code_postal_with_fallback})"
|
||||||
else
|
else
|
||||||
value
|
value.present? ? value.to_s : ''
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue