Fix sentry issue #2139 when published_at is nil

This commit is contained in:
Mathieu Magnin 2017-12-13 17:00:24 +01:00
parent 44c335d53e
commit d901852e09
2 changed files with 17 additions and 2 deletions

View file

@ -10,7 +10,9 @@ class ProcedureDecorator < Draper::Decorator
end
def published_at_fr
published_at.localtime.strftime('%d/%m/%Y %H:%M')
if published_at.present?
published_at.localtime.strftime('%d/%m/%Y %H:%M')
end
end
def logo_img