Add human version translation for state

This commit is contained in:
Mathieu Magnin 2017-04-14 17:38:08 +02:00
parent d87989622c
commit 822c7cdd96
5 changed files with 12 additions and 6 deletions

View file

@ -4,7 +4,8 @@ class DossierSerializer < ActiveModel::Serializer
:updated_at,
:archived,
:mandataire_social,
:state
:state,
:simplified_state
has_one :entreprise
has_one :etablissement
@ -14,4 +15,8 @@ class DossierSerializer < ActiveModel::Serializer
has_many :champs_private
has_many :pieces_justificatives
has_many :types_de_piece_justificative
def simplified_state
object.decorate.display_state
end
end