demarches-normaliennes/app/serializers/dossiers_serializer.rb
2018-10-08 18:36:49 +02:00

14 lines
222 B
Ruby

class DossiersSerializer < ActiveModel::Serializer
attributes :id,
:updated_at,
:initiated_at,
:state
def initiated_at
object.en_construction_at
end
def state
object.old_state_value
end
end