1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/views/api/events/show.json.jbuilder
2016-03-23 18:39:41 +01:00

11 lines
362 B
Ruby

json.partial! 'api/events/event', event: @event
json.recurrence_events @event.recurrence_events do |e|
json.id e.id
json.start_date e.availability.start_at
json.start_time e.availability.start_at
json.end_date e.availability.end_at
json.end_time e.availability.end_at
json.nb_free_places e.nb_free_places
json.availability_id e.availability_id
end