1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00
fab-manager/app/views/api/events/show.json.jbuilder
2022-12-21 14:05:14 +01:00

13 lines
439 B
Ruby

# frozen_string_literal: true
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.to_date
json.start_time e.availability.start_at.strftime('%R')
json.end_date e.availability.end_at.to_date
json.end_time e.availability.end_at.strftime('%R')
json.nb_free_places e.nb_free_places
json.availability_id e.availability_id
end