mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
8 lines
216 B
Ruby
8 lines
216 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.array!(@machines) do |machine|
|
|
json.extract! machine, :id, :name, :slug, :disabled
|
|
|
|
json.machine_image machine.machine_image.attachment.medium.url if machine.machine_image
|
|
end
|