1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/views/api/spaces/show.json.jbuilder
2022-12-21 14:05:14 +01:00

10 lines
303 B
Ruby

# frozen_string_literal: true
json.partial! 'api/spaces/space', space: @space
json.extract! @space, :characteristics, :created_at, :updated_at
json.space_files_attributes @space.space_files do |f|
json.id f.id
json.attachment_name f.attachment_identifier
json.attachment_url f.attachment_url
end