Use default format for date and datetime champ

This commit is contained in:
simon lehericey 2019-05-22 17:54:17 +02:00 committed by Pierre de La Morinerie
parent abcd58c35d
commit ee296f2b44
4 changed files with 8 additions and 4 deletions

View file

@ -31,9 +31,9 @@
- when TypeDeChamp.type_champs.fetch(:textarea)
= render partial: "shared/champs/textarea/show", locals: { champ: c }
- when TypeDeChamp.type_champs.fetch(:date)
= try_format_date(c.to_s)
= c.to_s
- when TypeDeChamp.type_champs.fetch(:datetime)
= try_format_datetime(c.to_s)
= c.to_s
- else
= sanitize(c.to_s)