mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
12 lines
360 B
Ruby
12 lines
360 B
Ruby
# 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
|