Fix CSV output for addresses on several lines.

This commit is contained in:
Guillaume Lazzara 2016-05-20 18:24:05 +02:00
parent 9e3b1d73de
commit e2391d8635

View file

@ -11,4 +11,8 @@ class EtablissementSerializer < ActiveModel::Serializer
:code_postal,
:localite,
:code_insee_localite
def adresse
object.adresse.chomp.gsub("\r\n", ' ')
end
end