2016-01-21 11:41:24 +01:00
|
|
|
class DossiersSerializer < ActiveModel::Serializer
|
|
|
|
attributes :id,
|
2017-10-05 10:50:44 +02:00
|
|
|
:updated_at,
|
2018-10-08 17:56:18 +02:00
|
|
|
:initiated_at,
|
|
|
|
:state
|
2017-12-14 15:51:45 +01:00
|
|
|
|
|
|
|
def initiated_at
|
|
|
|
object.en_construction_at
|
|
|
|
end
|
2018-10-08 17:56:18 +02:00
|
|
|
|
|
|
|
def state
|
|
|
|
object.old_state_value
|
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|