1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/views/api/spaces/show.json.jbuilder

10 lines
426 B
Plaintext
Raw Normal View History

2017-02-14 13:36:10 +01:00
json.extract! @space, :id, :name, :description, :characteristics, :created_at, :updated_at, :slug, :default_places
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
json.space_projects @space.projects do |p|
json.extract! p, :slug, :name
2017-02-13 16:10:12 +01:00
end