mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
10 lines
303 B
Ruby
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
|