2016-01-20 15:48:46 +01:00
|
|
|
class DossierSerializer < ActiveModel::Serializer
|
|
|
|
attributes :id,
|
|
|
|
:nom_projet,
|
2016-01-25 16:08:10 +01:00
|
|
|
:created_at,
|
|
|
|
:updated_at,
|
2016-02-26 12:17:41 +01:00
|
|
|
:archived,
|
2016-07-11 14:43:20 +02:00
|
|
|
:mandataire_social,
|
|
|
|
:state
|
2016-01-25 16:08:10 +01:00
|
|
|
|
|
|
|
has_one :entreprise
|
|
|
|
has_one :etablissement
|
2016-03-16 15:34:35 +01:00
|
|
|
has_many :cerfa
|
2016-03-14 10:34:46 +01:00
|
|
|
has_many :commentaires
|
2016-02-26 12:17:41 +01:00
|
|
|
has_many :champs
|
2016-03-17 17:33:38 +01:00
|
|
|
has_many :pieces_justificatives
|
2016-03-17 14:50:10 +01:00
|
|
|
has_many :types_de_piece_justificative
|
2016-01-20 15:48:46 +01:00
|
|
|
end
|