json.extract! @space, :id, :name, :description, :characteristics, :created_at, :updated_at, :slug, :default_places 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 end # 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 # end