1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/views/api/machines/index.json.jbuilder
2017-10-11 12:10:05 +02:00

6 lines
252 B
Ruby

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