demarches-normaliennes/app/serializers/row_serializer.rb

8 lines
159 B
Ruby
Raw Permalink Normal View History

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