1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-27 21:54:27 +01:00

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