1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/views/api/availabilities/reservations.json.jbuilder

18 lines
564 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
2022-07-12 17:46:01 +02:00
json.array!(@slots_reservations) do |sr|
json.id sr.id
json.slot_id sr.slot_id
json.start_at sr.slot.start_at.iso8601
json.end_at sr.slot.end_at.iso8601
json.message sr.reservation.message
json.reservable sr.reservation.reservable
json.reservable_id sr.reservation.reservable_id
json.reservable_type sr.reservation.reservable_type
2016-03-23 18:39:41 +01:00
json.user do
2022-07-12 17:46:01 +02:00
json.id sr.reservation.statistic_profile&.user_id
json.name sr.reservation.statistic_profile&.user&.profile&.full_name
2016-03-23 18:39:41 +01:00
end
2022-07-12 17:46:01 +02:00
json.canceled_at sr.canceled_at
2016-03-23 18:39:41 +01:00
end