[fix #2777] DossiersSerializer: add state
This commit is contained in:
parent
87e731bc75
commit
2288303de9
3 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue