demarches-normaliennes/app/serializers/row_serializer.rb

6 lines
128 B
Ruby
Raw Normal View History

2019-07-11 10:28:44 +02:00
class RowSerializer < ActiveModel::Serializer
has_many :champs, serializer: ChampSerializer
attribute :index, key: :id
end