mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix json template of training reservation
This commit is contained in:
parent
2cc8096236
commit
1d53e3b5b7
@ -4,8 +4,8 @@ json.availabilities @availabilities do |a|
|
||||
json.start_at a.start_at.iso8601
|
||||
json.end_at a.end_at.iso8601
|
||||
json.reservation_users a.slots.map do |slot|
|
||||
json.id slot.reservation.user_id
|
||||
json.full_name slot.reservation.user.profile.full_name
|
||||
json.is_valid slot.reservation.user.trainings.include?(@training)
|
||||
json.id slot.reservations.first.user_id
|
||||
json.full_name slot.reservations.first.user.profile.full_name
|
||||
json.is_valid slot.reservations.first.user.trainings.include?(@training)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user