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/machines/index.json.jbuilder

6 lines
208 B
Ruby

json.array!(@machines) do |machine|
json.extract! machine, :id, :name, :description, :spec, :slug, :disabled
json.machine_image machine.machine_image.attachment.medium.url if machine.machine_image
end