2021-12-21 09:51:40 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-10-11 14:58:38 +02:00
|
|
|
json.extract! @space, :id, :name, :description, :characteristics, :created_at, :updated_at, :slug, :default_places, :disabled
|
2017-02-13 16:10:12 +01:00
|
|
|
json.space_image @space.space_image.attachment.large.url if @space.space_image
|
|
|
|
json.space_files_attributes @space.space_files do |f|
|
|
|
|
json.id f.id
|
|
|
|
json.attachment f.attachment_identifier
|
|
|
|
json.attachment_url f.attachment_url
|
2017-02-14 12:41:51 +01:00
|
|
|
end
|
2017-03-01 14:30:53 +01:00
|
|
|
# Unused for the moment. May be used to show a list of projects
|
|
|
|
# using the space in the space_show screen
|
|
|
|
# json.space_projects @space.projects do |p|
|
|
|
|
# json.extract! p, :slug, :name
|
2021-12-21 09:51:40 +01:00
|
|
|
# end
|