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

8 lines
216 B
Plaintext
Raw Normal View History

2021-06-15 17:34:12 +02:00
# frozen_string_literal: true
2016-07-06 11:22:01 +02:00
json.array!(@machines) do |machine|
2021-06-15 17:34:12 +02:00
json.extract! machine, :id, :name, :slug, :disabled
2016-07-06 11:22:01 +02:00
json.machine_image machine.machine_image.attachment.medium.url if machine.machine_image
2015-05-05 03:10:25 +02:00
end