2024-09-13 23:42:55 +03:00
|
|
|
json.array! @events, cached: ->(event) { [event, event.track, event.event_type] } do |event|
|
2024-09-13 23:31:27 +03:00
|
|
|
json.id event.id
|
|
|
|
json.title event.title
|
|
|
|
json.abstract event.abstract
|
|
|
|
json.track_id event.track_id
|
|
|
|
|
|
|
|
json.track do
|
|
|
|
json.name event.track.name
|
|
|
|
end
|
|
|
|
json.event_type do
|
|
|
|
json.name event.event_type.name
|
|
|
|
end
|
|
|
|
end
|