Add human version translation for state
This commit is contained in:
parent
d87989622c
commit
822c7cdd96
5 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue