demarches-normaliennes/app/serializers/row_serializer.rb
2019-08-01 10:04:35 +02:00

5 lines
128 B
Ruby

class RowSerializer < ActiveModel::Serializer
has_many :champs, serializer: ChampSerializer
attribute :index, key: :id
end