mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
7 lines
323 B
Ruby
7 lines
323 B
Ruby
json.extract! @space, :id, :name, :description, :characteristics, :created_at, :updated_at
|
|
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 |