1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00
fab-manager/app/views/api/spaces/_space.json.jbuilder

11 lines
331 B
Plaintext
Raw Normal View History

2022-11-08 16:20:34 +01:00
# frozen_string_literal: true
json.extract! space, :id, :name, :description, :slug, :default_places, :disabled
if space.space_image
json.space_image_attributes do
json.id space.space_image.id
json.attachment_name space.space_image.attachment_identifier
json.attachment_url space.space_image.attachment.url
end
end