clarion/app/views/api/events/index.jbuilder
2015-10-17 18:26:21 +03:00

14 lines
401 B
Ruby

@events.each do |event|
json.set! event.id do
json.title event.title
json.subtitle event.subtitle
json.length event.length
json.language event.language
json.abstract event.abstract
json.description event.description
json.event_type_id event.event_type_id
json.track_id event.track_id
json.participant_user_ids event.participations.map(&:participant_id)
end
end