1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-27 14:22:17 +01:00
2016-07-06 11:22:01 +02:00

6 lines
241 B
Ruby

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