[fix #2777] DossiersSerializer: add state

This commit is contained in:
simon lehericey 2018-10-08 17:56:18 +02:00
parent 87e731bc75
commit 2288303de9
3 changed files with 9 additions and 2 deletions

View file

@ -1,9 +1,14 @@
class DossiersSerializer < ActiveModel::Serializer
attributes :id,
:updated_at,
:initiated_at
:initiated_at,
:state
def initiated_at
object.en_construction_at
end
def state
object.old_state_value
end
end