mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +01:00
12 lines
360 B
Plaintext
12 lines
360 B
Plaintext
|
# frozen_string_literal: true
|
||
|
|
||
|
json.availabilities @availabilities do |availability|
|
||
|
json.extract! availability, :id, :start_at, :end_at, :created_at
|
||
|
json.available_type availability.available_type.classify
|
||
|
json.available_ids availability.available_ids
|
||
|
|
||
|
json.slots availability.slots do |slot|
|
||
|
json.extract! slot, :id, :start_at, :end_at
|
||
|
end
|
||
|
end
|