Remove carriage returns in address in CSV format only

This commit is contained in:
Guillaume Lazzara 2016-05-24 15:58:21 +02:00
parent 63cf35a748
commit f62c9ebec9
4 changed files with 7 additions and 5 deletions

View file

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